Fix spelling mistakes found by misspell
https://github.com/client9/misspell
This commit is contained in:
parent
1d145be5a1
commit
ead7008a08
@ -226,7 +226,7 @@ func parseCliOpts() (args argContainer) {
|
|||||||
tlog.Fatal.Printf("Invalid command line: %s. Try '%s -help'.", prettyArgs(), tlog.ProgramName)
|
tlog.Fatal.Printf("Invalid command line: %s. Try '%s -help'.", prettyArgs(), tlog.ProgramName)
|
||||||
os.Exit(exitcodes.Usage)
|
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) {
|
if isFlagPassed(flagSet, scryptn) {
|
||||||
args._explicitScryptn = true
|
args._explicitScryptn = true
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ func (rfs *ReverseFS) prepareExcluder(args fusefrontend.Args) {
|
|||||||
// Patterns passed in the -exclude command line option are prefixed
|
// Patterns passed in the -exclude command line option are prefixed
|
||||||
// with a leading '/' to preserve backwards compatibility (before
|
// with a leading '/' to preserve backwards compatibility (before
|
||||||
// wildcard matching was implemented, exclusions always were matched
|
// wildcard matching was implemented, exclusions always were matched
|
||||||
// agains the full path).
|
// against the full path).
|
||||||
func getExclusionPatterns(args fusefrontend.Args) []string {
|
func getExclusionPatterns(args fusefrontend.Args) []string {
|
||||||
patterns := make([]string, len(args.Exclude)+len(args.ExcludeWildcard))
|
patterns := make([]string, len(args.Exclude)+len(args.ExcludeWildcard))
|
||||||
// add -exclude
|
// add -exclude
|
||||||
|
@ -37,7 +37,7 @@ type ReverseFS struct {
|
|||||||
nameTransform nametransform.NameTransformer
|
nameTransform nametransform.NameTransformer
|
||||||
// Content encryption helper
|
// Content encryption helper
|
||||||
contentEnc *contentenc.ContentEnc
|
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
|
excluder ignore.IgnoreParser
|
||||||
// inoMap translates inode numbers from different devices to unique inode
|
// inoMap translates inode numbers from different devices to unique inode
|
||||||
// numbers.
|
// numbers.
|
||||||
|
@ -97,7 +97,7 @@ func (m *InoMap) Translate(in QIno) (out uint64) {
|
|||||||
return out
|
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().
|
// Convience wrapper around Translate().
|
||||||
func (m *InoMap) TranslateStat(st *syscall.Stat_t) {
|
func (m *InoMap) TranslateStat(st *syscall.Stat_t) {
|
||||||
in := QInoFromStat(st)
|
in := QInoFromStat(st)
|
||||||
|
@ -66,7 +66,7 @@ func WriteDirIVAt(dirfd int) error {
|
|||||||
// https://github.com/rfjakob/gocryptfs/issues/387 ).
|
// https://github.com/rfjakob/gocryptfs/issues/387 ).
|
||||||
//
|
//
|
||||||
// Note that gocryptfs.conf is still created with 0400 permissions so the
|
// 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
|
const dirivPerms = 0440
|
||||||
|
|
||||||
iv := cryptocore.RandBytes(DirIVLen)
|
iv := cryptocore.RandBytes(DirIVLen)
|
||||||
|
2
main.go
2
main.go
@ -139,7 +139,7 @@ func main() {
|
|||||||
mxp := runtime.GOMAXPROCS(0)
|
mxp := runtime.GOMAXPROCS(0)
|
||||||
if mxp < 4 && os.Getenv("GOMAXPROCS") == "" {
|
if mxp < 4 && os.Getenv("GOMAXPROCS") == "" {
|
||||||
// On a 2-core machine, setting maxprocs to 4 gives 10% better performance.
|
// 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)
|
runtime.GOMAXPROCS(4)
|
||||||
}
|
}
|
||||||
// mount(1) unsets PATH. Since exec.Command does not handle this case, we set
|
// mount(1) unsets PATH. Since exec.Command does not handle this case, we set
|
||||||
|
@ -82,7 +82,7 @@ func TestConcurrentReadCreate(t *testing.T) {
|
|||||||
content := []byte("1234567890")
|
content := []byte("1234567890")
|
||||||
loops := 100
|
loops := 100
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
// "Creater" thread
|
// "Create()" thread
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
for i := 0; i < loops; i++ {
|
for i := 0; i < loops; i++ {
|
||||||
|
@ -28,7 +28,7 @@ type mountInfo struct {
|
|||||||
// Creates "p" if it does not exist.
|
// Creates "p" if it does not exist.
|
||||||
//
|
//
|
||||||
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
|
// 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 {
|
func Mount(c string, p string, showOutput bool, extraArgs ...string) error {
|
||||||
args := []string{"-q", "-wpanic", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())}
|
args := []string{"-q", "-wpanic", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())}
|
||||||
args = append(args, extraArgs...)
|
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.
|
// MountOrExit calls Mount() and exits on failure.
|
||||||
//
|
//
|
||||||
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
|
// 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) {
|
func MountOrExit(c string, p string, extraArgs ...string) {
|
||||||
err := Mount(c, p, true, extraArgs...)
|
err := Mount(c, p, true, extraArgs...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -110,7 +110,7 @@ func MountOrExit(c string, p string, extraArgs ...string) {
|
|||||||
// MountOrFatal calls Mount() and calls t.Fatal() on failure.
|
// MountOrFatal calls Mount() and calls t.Fatal() on failure.
|
||||||
//
|
//
|
||||||
// Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for
|
// 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) {
|
func MountOrFatal(t *testing.T, c string, p string, extraArgs ...string) {
|
||||||
err := Mount(c, p, true, extraArgs...)
|
err := Mount(c, p, true, extraArgs...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user