summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli_args.go2
-rw-r--r--internal/fusefrontend_reverse/excluder.go2
-rw-r--r--internal/fusefrontend_reverse/rfs.go2
-rw-r--r--internal/inomap/inomap.go2
-rw-r--r--internal/nametransform/diriv.go2
-rw-r--r--main.go2
-rw-r--r--tests/matrix/concurrency_test.go2
-rw-r--r--tests/test_helpers/mount_unmount.go6
8 files changed, 10 insertions, 10 deletions
diff --git a/cli_args.go b/cli_args.go
index a036a2a..bc66d30 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -226,7 +226,7 @@ func parseCliOpts() (args argContainer) {
tlog.Fatal.Printf("Invalid command line: %s. Try '%s -help'.", prettyArgs(), tlog.ProgramName)
os.Exit(exitcodes.Usage)
}
- // We want to know if -scryptn was passed explicitely
+ // We want to know if -scryptn was passed explicitly
if isFlagPassed(flagSet, scryptn) {
args._explicitScryptn = true
}
diff --git a/internal/fusefrontend_reverse/excluder.go b/internal/fusefrontend_reverse/excluder.go
index 5c0941a..c44816c 100644
--- a/internal/fusefrontend_reverse/excluder.go
+++ b/internal/fusefrontend_reverse/excluder.go
@@ -29,7 +29,7 @@ func (rfs *ReverseFS) prepareExcluder(args fusefrontend.Args) {
// Patterns passed in the -exclude command line option are prefixed
// with a leading '/' to preserve backwards compatibility (before
// wildcard matching was implemented, exclusions always were matched
-// agains the full path).
+// against the full path).
func getExclusionPatterns(args fusefrontend.Args) []string {
patterns := make([]string, len(args.Exclude)+len(args.ExcludeWildcard))
// add -exclude
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go
index 6bbdfb5..8c7ce02 100644
--- a/internal/fusefrontend_reverse/rfs.go
+++ b/internal/fusefrontend_reverse/rfs.go
@@ -37,7 +37,7 @@ type ReverseFS struct {
nameTransform nametransform.NameTransformer
// Content encryption helper
contentEnc *contentenc.ContentEnc
- // Tests wheter a path is excluded (hiden) from the user. Used by -exclude.
+ // Tests whether a path is excluded (hiden) from the user. Used by -exclude.
excluder ignore.IgnoreParser
// inoMap translates inode numbers from different devices to unique inode
// numbers.
diff --git a/internal/inomap/inomap.go b/internal/inomap/inomap.go
index fb6faf6..64bb174 100644
--- a/internal/inomap/inomap.go
+++ b/internal/inomap/inomap.go
@@ -97,7 +97,7 @@ func (m *InoMap) Translate(in QIno) (out uint64) {
return out
}
-// TranslateStat translates the inode number contained in "st" if neccessary.
+// TranslateStat translates the inode number contained in "st" if necessary.
// Convience wrapper around Translate().
func (m *InoMap) TranslateStat(st *syscall.Stat_t) {
in := QInoFromStat(st)
diff --git a/internal/nametransform/diriv.go b/internal/nametransform/diriv.go
index c216dd0..cd20ca6 100644
--- a/internal/nametransform/diriv.go
+++ b/internal/nametransform/diriv.go
@@ -66,7 +66,7 @@ func WriteDirIVAt(dirfd int) error {
// https://github.com/rfjakob/gocryptfs/issues/387 ).
//
// Note that gocryptfs.conf is still created with 0400 permissions so the
- // owner must explicitely chmod it to permit access.
+ // owner must explicitly chmod it to permit access.
const dirivPerms = 0440
iv := cryptocore.RandBytes(DirIVLen)
diff --git a/main.go b/main.go
index 1a741ed..2ece064 100644
--- a/main.go
+++ b/main.go
@@ -139,7 +139,7 @@ func main() {
mxp := runtime.GOMAXPROCS(0)
if mxp < 4 && os.Getenv("GOMAXPROCS") == "" {
// On a 2-core machine, setting maxprocs to 4 gives 10% better performance.
- // But don't override an explicitely set GOMAXPROCS env variable.
+ // But don't override an explicitly set GOMAXPROCS env variable.
runtime.GOMAXPROCS(4)
}
// mount(1) unsets PATH. Since exec.Command does not handle this case, we set
diff --git a/tests/matrix/concurrency_test.go b/tests/matrix/concurrency_test.go
index 7fd3a00..205becb 100644
--- a/tests/matrix/concurrency_test.go
+++ b/tests/matrix/concurrency_test.go
@@ -82,7 +82,7 @@ func TestConcurrentReadCreate(t *testing.T) {
content := []byte("1234567890")
loops := 100
var wg sync.WaitGroup
- // "Creater" thread
+ // "Create()" thread
wg.Add(1)
go func() {
for i := 0; i < loops; i++ {
diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go
index 753ae1a..cdbdee8 100644
--- a/tests/test_helpers/mount_unmount.go
+++ b/tests/test_helpers/mount_unmount.go
@@ -28,7 +28,7 @@ type mountInfo struct {
// Creates "p" if it does not exist.
//
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
-// getting the master key) explicitely.
+// getting the master key) explicitly.
func Mount(c string, p string, showOutput bool, extraArgs ...string) error {
args := []string{"-q", "-wpanic", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())}
args = append(args, extraArgs...)
@@ -98,7 +98,7 @@ func Mount(c string, p string, showOutput bool, extraArgs ...string) error {
// MountOrExit calls Mount() and exits on failure.
//
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
-// getting the master key) explicitely.
+// getting the master key) explicitly.
func MountOrExit(c string, p string, extraArgs ...string) {
err := Mount(c, p, true, extraArgs...)
if err != nil {
@@ -110,7 +110,7 @@ func MountOrExit(c string, p string, extraArgs ...string) {
// MountOrFatal calls Mount() and calls t.Fatal() on failure.
//
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
-// getting the master key) explicitely.
+// getting the master key) explicitly.
func MountOrFatal(t *testing.T, c string, p string, extraArgs ...string) {
err := Mount(c, p, true, extraArgs...)
if err != nil {