diff options
author | Jakob Unterwurzacher | 2017-05-28 18:09:02 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-05-30 17:04:46 +0200 |
commit | 857507e8b100626ae0471fae793efc52bf552821 (patch) | |
tree | 155ff21467d8b35887e9a7fd984d37e23f7e6e70 /internal/fusefrontend_reverse/reverse_longnames.go | |
parent | 4d2cc551cf6fa71e425fad8f397e96d69f016a6b (diff) |
fusefrontend_reverse: move pathiv to its own package
We will also need it in forward mode.
Diffstat (limited to 'internal/fusefrontend_reverse/reverse_longnames.go')
-rw-r--r-- | internal/fusefrontend_reverse/reverse_longnames.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/reverse_longnames.go b/internal/fusefrontend_reverse/reverse_longnames.go index 0830298..7e26c90 100644 --- a/internal/fusefrontend_reverse/reverse_longnames.go +++ b/internal/fusefrontend_reverse/reverse_longnames.go @@ -12,6 +12,7 @@ import ( "github.com/hanwen/go-fuse/fuse/nodefs" "github.com/rfjakob/gocryptfs/internal/nametransform" + "github.com/rfjakob/gocryptfs/internal/pathiv" "github.com/rfjakob/gocryptfs/internal/tlog" ) @@ -91,7 +92,7 @@ func (rfs *ReverseFS) newNameFile(relPath string) (nodefs.File, fuse.Status) { if err != nil { return nil, fuse.ToStatus(err) } - dirIV := derivePathIV(cDir, ivPurposeDirIV) + dirIV := pathiv.Derive(cDir, pathiv.PurposeDirIV) // plain name pName, err := rfs.findLongnameParent(pDir, dirIV, longname) if err != nil { |