Skip to content

Commit ead7008

Browse files
committed
Fix spelling mistakes found by misspell
https://github.com/client9/misspell
1 parent 1d145be commit ead7008

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

cli_args.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func parseCliOpts() (args argContainer) {
226226
tlog.Fatal.Printf("Invalid command line: %s. Try '%s -help'.", prettyArgs(), tlog.ProgramName)
227227
os.Exit(exitcodes.Usage)
228228
}
229-
// We want to know if -scryptn was passed explicitely
229+
// We want to know if -scryptn was passed explicitly
230230
if isFlagPassed(flagSet, scryptn) {
231231
args._explicitScryptn = true
232232
}

internal/fusefrontend_reverse/excluder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (rfs *ReverseFS) prepareExcluder(args fusefrontend.Args) {
2929
// Patterns passed in the -exclude command line option are prefixed
3030
// with a leading '/' to preserve backwards compatibility (before
3131
// wildcard matching was implemented, exclusions always were matched
32-
// agains the full path).
32+
// against the full path).
3333
func getExclusionPatterns(args fusefrontend.Args) []string {
3434
patterns := make([]string, len(args.Exclude)+len(args.ExcludeWildcard))
3535
// add -exclude

internal/fusefrontend_reverse/rfs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type ReverseFS struct {
3737
nameTransform nametransform.NameTransformer
3838
// Content encryption helper
3939
contentEnc *contentenc.ContentEnc
40-
// Tests wheter a path is excluded (hiden) from the user. Used by -exclude.
40+
// Tests whether a path is excluded (hiden) from the user. Used by -exclude.
4141
excluder ignore.IgnoreParser
4242
// inoMap translates inode numbers from different devices to unique inode
4343
// numbers.

internal/inomap/inomap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (m *InoMap) Translate(in QIno) (out uint64) {
9797
return out
9898
}
9999

100-
// TranslateStat translates the inode number contained in "st" if neccessary.
100+
// TranslateStat translates the inode number contained in "st" if necessary.
101101
// Convience wrapper around Translate().
102102
func (m *InoMap) TranslateStat(st *syscall.Stat_t) {
103103
in := QInoFromStat(st)

internal/nametransform/diriv.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func WriteDirIVAt(dirfd int) error {
6666
// https://github.com/rfjakob/gocryptfs/issues/387 ).
6767
//
6868
// Note that gocryptfs.conf is still created with 0400 permissions so the
69-
// owner must explicitely chmod it to permit access.
69+
// owner must explicitly chmod it to permit access.
7070
const dirivPerms = 0440
7171

7272
iv := cryptocore.RandBytes(DirIVLen)

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func main() {
139139
mxp := runtime.GOMAXPROCS(0)
140140
if mxp < 4 && os.Getenv("GOMAXPROCS") == "" {
141141
// On a 2-core machine, setting maxprocs to 4 gives 10% better performance.
142-
// But don't override an explicitely set GOMAXPROCS env variable.
142+
// But don't override an explicitly set GOMAXPROCS env variable.
143143
runtime.GOMAXPROCS(4)
144144
}
145145
// mount(1) unsets PATH. Since exec.Command does not handle this case, we set

tests/matrix/concurrency_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func TestConcurrentReadCreate(t *testing.T) {
8282
content := []byte("1234567890")
8383
loops := 100
8484
var wg sync.WaitGroup
85-
// "Creater" thread
85+
// "Create()" thread
8686
wg.Add(1)
8787
go func() {
8888
for i := 0; i < loops; i++ {

tests/test_helpers/mount_unmount.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type mountInfo struct {
2828
// Creates "p" if it does not exist.
2929
//
3030
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
31-
// getting the master key) explicitely.
31+
// getting the master key) explicitly.
3232
func Mount(c string, p string, showOutput bool, extraArgs ...string) error {
3333
args := []string{"-q", "-wpanic", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())}
3434
args = append(args, extraArgs...)
@@ -98,7 +98,7 @@ func Mount(c string, p string, showOutput bool, extraArgs ...string) error {
9898
// MountOrExit calls Mount() and exits on failure.
9999
//
100100
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
101-
// getting the master key) explicitely.
101+
// getting the master key) explicitly.
102102
func MountOrExit(c string, p string, extraArgs ...string) {
103103
err := Mount(c, p, true, extraArgs...)
104104
if err != nil {
@@ -110,7 +110,7 @@ func MountOrExit(c string, p string, extraArgs ...string) {
110110
// MountOrFatal calls Mount() and calls t.Fatal() on failure.
111111
//
112112
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
113-
// getting the master key) explicitely.
113+
// getting the master key) explicitly.
114114
func MountOrFatal(t *testing.T, c string, p string, extraArgs ...string) {
115115
err := Mount(c, p, true, extraArgs...)
116116
if err != nil {

0 commit comments

Comments
 (0)