diff options
author | Jakob Unterwurzacher | 2016-10-05 22:22:28 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-05 22:22:28 +0200 |
commit | ff48dc1aab1c551dcaaa0f46b32dbc5f35e90e2e (patch) | |
tree | 7970a5c94bc8bf646fd899e785f647751ff8838e /internal/fusefrontend_reverse/rfs.go | |
parent | a4956fa6bfde27c21f70e8577ebb586ccc9a3691 (diff) |
reverse: initialize the longname cache only when reverse mode is used
Gets rid of the idling longnameCacheCleaner thread in "normal" mode.
Diffstat (limited to 'internal/fusefrontend_reverse/rfs.go')
-rw-r--r-- | internal/fusefrontend_reverse/rfs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go index ab65ba3..1c143bf 100644 --- a/internal/fusefrontend_reverse/rfs.go +++ b/internal/fusefrontend_reverse/rfs.go @@ -47,6 +47,8 @@ var _ pathfs.FileSystem = &reverseFS{} // NewFS returns an encrypted FUSE overlay filesystem func NewFS(args fusefrontend.Args) pathfs.FileSystem { + initLongnameCache() + cryptoCore := cryptocore.New(args.Masterkey, args.CryptoBackend, contentenc.DefaultIVBits) contentEnc := contentenc.New(cryptoCore, contentenc.DefaultBS) nameTransform := nametransform.New(cryptoCore, args.LongNames) |