diff options
author | Jakob Unterwurzacher | 2016-11-10 00:38:01 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-11-10 00:38:01 +0100 |
commit | e7f57695a6c7b3ed545793347506907c7aec3ecc (patch) | |
tree | 3ff3c6c29a064e24a8387a8cdbf31944014926f6 /internal/fusefrontend_reverse/reverse_longnames.go | |
parent | 75ebb28a625bc16d145f5acd9e0cc1d305716afe (diff) |
Fix golint warnings
$ golint ./... | grep -v underscore | grep -v ALL_CAPS
internal/fusefrontend_reverse/rfs.go:52:36: exported func NewFS returns unexported type *fusefrontend_reverse.reverseFS, which can be annoying to use
internal/nametransform/raw64_go1.5.go:10:2: exported const HaveRaw64 should have comment (or a comment on this block) or be unexported
Diffstat (limited to 'internal/fusefrontend_reverse/reverse_longnames.go')
-rw-r--r-- | internal/fusefrontend_reverse/reverse_longnames.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/fusefrontend_reverse/reverse_longnames.go b/internal/fusefrontend_reverse/reverse_longnames.go index d59664d..96fa613 100644 --- a/internal/fusefrontend_reverse/reverse_longnames.go +++ b/internal/fusefrontend_reverse/reverse_longnames.go @@ -39,7 +39,7 @@ func initLongnameCache() { } // findLongnameParent converts "gocryptfs.longname.XYZ" to the plaintext name -func (rfs *reverseFS) findLongnameParent(dir string, dirIV []byte, longname string) (plaintextName string, err error) { +func (rfs *ReverseFS) findLongnameParent(dir string, dirIV []byte, longname string) (plaintextName string, err error) { longnameCacheLock.Lock() hit := longnameParentCache[longname] longnameCacheLock.Unlock() @@ -78,7 +78,7 @@ func (rfs *reverseFS) findLongnameParent(dir string, dirIV []byte, longname stri return hit, nil } -func (rfs *reverseFS) newNameFile(relPath string) (nodefs.File, fuse.Status) { +func (rfs *ReverseFS) newNameFile(relPath string) (nodefs.File, fuse.Status) { dotName := filepath.Base(relPath) // gocryptfs.longname.XYZ.name longname := dotName[:len(dotName)-len(nametransform.LongNameSuffix)] // gocryptfs.longname.XYZ @@ -94,5 +94,5 @@ func (rfs *reverseFS) newNameFile(relPath string) (nodefs.File, fuse.Status) { } content := []byte(rfs.nameTransform.EncryptName(e, dirIV)) parentFile := filepath.Join(rfs.args.Cipherdir, pDir) - return rfs.NewVirtualFile(content, parentFile) + return rfs.newVirtualFile(content, parentFile) } |