aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-04-01 17:05:55 +0200
committerJakob Unterwurzacher2017-04-01 17:05:55 +0200
commite87aebb835b91ba66f288030ee3510df42b860a9 (patch)
treeb5f5ec863a1c3bedef6ba6f46a7708205f4e5d9f /internal/fusefrontend_reverse
parentacb73ca4363a8fbf3e0be1907a9b26689d879d73 (diff)
fusefrontend_reverse: drop unused dirIVAttr function
This has long been replaced by virtualFile.GetAttr().
Diffstat (limited to 'internal/fusefrontend_reverse')
-rw-r--r--internal/fusefrontend_reverse/rfs.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go
index 4dba91a..18f7506 100644
--- a/internal/fusefrontend_reverse/rfs.go
+++ b/internal/fusefrontend_reverse/rfs.go
@@ -84,39 +84,6 @@ func relDir(path string) string {
return dir
}
-// dirIVAttr handles GetAttr requests for the virtual gocryptfs.diriv files.
-func (rfs *ReverseFS) dirIVAttr(relPath string, context *fuse.Context) (*fuse.Attr, fuse.Status) {
- cDir := relDir(relPath)
- dir, err := rfs.decryptPath(cDir)
- if err != nil {
- tlog.Warn.Printf("dirIVAttr: decrypt err %q\n", cDir)
- return nil, fuse.ToStatus(err)
- }
- // Does the parent dir exist?
- a, status := rfs.loopbackfs.GetAttr(dir, context)
- if !status.Ok() {
- tlog.Warn.Printf("dirIVAttr: missing parent\n")
- return nil, status
- }
- // Is it a dir at all?
- if !a.IsDir() {
- tlog.Warn.Printf("dirIVAttr: not isdir\n")
- return nil, fuse.ENOTDIR
- }
- // Does the user have execute permissions?
- if a.Mode&syscall.S_IXUSR == 0 {
- tlog.Warn.Printf("dirIVAttr: not exec")
- return nil, fuse.EPERM
- }
- // All good. Let's fake the file. We use the timestamps from the parent dir.
- a.Mode = virtualFileMode
- a.Size = nametransform.DirIVLen
- a.Nlink = 1
- a.Ino = rfs.inoGen.next()
-
- return a, fuse.OK
-}
-
// isDirIV determines if the path points to a gocryptfs.diriv file
func (rfs *ReverseFS) isDirIV(relPath string) bool {
if rfs.args.PlaintextNames {