Skip to content

Commit 08bcbdd

Browse files
committed
fix typo I found in this repo
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
1 parent 0a58d55 commit 08bcbdd

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ summarily closed.
1919
While pull requests are the methodology for submitting changes to code, changes
2020
are much more likely to be accepted if they are accompanied by additional
2121
engineering work. While we don't define this explicitly, most of these goals
22-
are accomplished through communication of the design goals and subsqeuent
22+
are accomplished through communication of the design goals and subsequent
2323
solutions. Often times, it helps to first state the problem before presenting
2424
solutions.
2525

2626
Typically, the best methods of accomplishing this are to submit an issue,
2727
stating the problem. This issue can include a problem statement and a
2828
checklist with requirements. If solutions are proposed, alternatives should be
2929
listed and eliminated. Even if the criteria for elimination of a solution is
30-
frivelous, say so.
30+
frivolous, say so.
3131

3232
Larger changes typically work best with design documents, similar to those found
3333
in `design/`. These are focused on providing context to the design at the time

cmd/containerd-shim/console_solaris.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88
)
99

10-
// NewConsole returns an initalized console that can be used within a container by copying bytes
10+
// NewConsole returns an initialized console that can be used within a container by copying bytes
1111
// from the master side to the slave that is attached as the tty for the container's init process.
1212
func newConsole(uid, gid int) (*os.File, string, error) {
1313
return nil, "", errors.New("newConsole not implemented on Solaris")

cmd/containerd-shim/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type controlMessage struct {
2727
}
2828

2929
// containerd-shim is a small shim that sits in front of a runtime implementation
30-
// that allows it to be repartented to init and handle reattach from the caller.
30+
// that allows it to be reparented to init and handle reattach from the caller.
3131
//
3232
// the cwd of the shim should be the path to the state directory where the shim
3333
// can locate fifos and other information.

content/content_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func checkBlobPath(t *testing.T, cs *ContentStore, dgst digest.Digest) string {
196196
t.Fatal(err, dgst)
197197
}
198198
if path != filepath.Join(cs.root, "blobs", dgst.Algorithm().String(), dgst.Hex()) {
199-
t.Fatalf("unxpected path: %q", path)
199+
t.Fatalf("unexpected path: %q", path)
200200
}
201201
fi, err := os.Stat(path)
202202
if err != nil {

design/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ may be exported for access via corresponding _services_.
4040

4141
## Modules
4242

43-
In addition to the subsystems have, we have sevaral components that may cross
43+
In addition to the subsystems have, we have several components that may cross
4444
subsystem boundaries, referened to as components. We have the following
4545
components:
4646

@@ -71,7 +71,7 @@ is a diagram illustrating the data flow for bundle creation.
7171

7272
Let's take pulling an image as a demonstrated example:
7373

74-
1. Instruct the Distribution layer to pull a particuler image. The distribution
74+
1. Instruct the Distribution layer to pull a particular image. The distribution
7575
layer places the image content into the _content store_. The image name and
7676
root manifest pointers are registered with the metadata store.
7777
2. Once the image is pulled, the user can instruct the bundle controller to

design/snapshots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ graphdrivers, minimizing the need to new code and sprawling tests.
3232
## Scope
3333

3434
In the past, the `graphdriver` component has provided quite a lot of
35-
funcionality in Docker. This includes serialization, hashing, unpacking,
35+
functionality in Docker. This includes serialization, hashing, unpacking,
3636
packing, mounting.
3737

3838
This _snapshot manager_ will only provide mount-oriented snapshot
@@ -49,7 +49,7 @@ abstract, layer-based filesystems. The model works by building up sets of
4949
directories with parent-child relationships, known as _Snapshots_.
5050

5151
Every snapshot is represented by an opaque `diff` directory, which acts as a
52-
handle to the snapshot. It may contain driver specifc data, including changeset
52+
handle to the snapshot. It may contain driver specific data, including changeset
5353
data, parent information and arbitrary metadata.
5454

5555
The `diff` directory for a _snapshot_ is created with a transactional

execution/executors/shim/process.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (p *process) isAlive() bool {
260260
return false
261261
}
262262

263-
// check that we have the same startttime
263+
// check that we have the same starttime
264264
stime, err := starttime.GetProcessStartTime(int(p.pid))
265265
if err != nil {
266266
if os.IsNotExist(err) {
@@ -286,10 +286,10 @@ func waitForPid(ctx context.Context, abortCh chan syscall.WaitStatus, root strin
286286
return
287287
case wait := <-abortCh:
288288
if wait.Signaled() {
289-
err = errors.Errorf("shim died prematurarily: %v", wait.Signal())
289+
err = errors.Errorf("shim died prematurely: %v", wait.Signal())
290290
return
291291
}
292-
err = errors.Errorf("shim exited prematurarily with exit code %v", wait.ExitStatus())
292+
err = errors.Errorf("shim exited prematurely with exit code %v", wait.ExitStatus())
293293
return
294294
default:
295295
}

execution/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (s *Service) SignalProcess(ctx context.Context, r *api.SignalProcessRequest
211211
}
212212
process := container.GetProcess(r.ProcessID)
213213
if process == nil {
214-
return nil, fmt.Errorf("Make me a constant! Process not foumd!")
214+
return nil, fmt.Errorf("Make me a constant! Process not found!")
215215
}
216216
return emptyResponse, process.Signal(syscall.Signal(r.Signal))
217217
}

gc/gc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package gc experiments with providing central gc tooling to ensure
2-
// deterministic resource removaol within containerd.
2+
// deterministic resource removal within containerd.
33
//
44
// For now, we just have a single exported implementation that can be used
55
// under certain use cases.

rootfs/apply.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func ApplyLayer(snapshots Snapshotter, mounter Mounter, rd io.Reader, parent dig
7979
// for each layer if they don't exist, keyed by their chain id. If the snapshot
8080
// already exists, it will be skipped.
8181
//
82-
// If sucessful, the chainID for the top-level layer is returned. That
82+
// If successful, the chainID for the top-level layer is returned. That
8383
// identifier can be used to check out a snapshot.
8484
func Prepare(snapshots Snaphotter, mounter Mounter, layers []ocispec.Descriptor,
8585
// TODO(stevvooe): The following functions are candidate for internal

0 commit comments

Comments
 (0)