aboutsummaryrefslogtreecommitdiff
path: root/frontend/dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-05 14:08:00 +0200
committerJakob Unterwurzacher2015-09-05 14:08:00 +0200
commit4ab9862ccb5911836acda9834b0b25f892229533 (patch)
tree4c55e5b44ecf2b4d94e762b036a7c66ad225c68a /frontend/dir.go
parent1257b4249d1473cd496e0b423c6aaa71b20aa41e (diff)
Fix read path
Diffstat (limited to 'frontend/dir.go')
-rw-r--r--frontend/dir.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/frontend/dir.go b/frontend/dir.go
index eca3cf5..ce64a5a 100644
--- a/frontend/dir.go
+++ b/frontend/dir.go
@@ -45,10 +45,16 @@ func (d *Dir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.Lo
}
clueDir, ok := n.(*cluefs.Dir)
if ok {
- return &Dir { Dir: clueDir }, nil
+ return &Dir {
+ Dir: clueDir,
+ crfs: d.crfs,
+ }, nil
} else {
clueFile := n.(*cluefs.File)
- return &File { File: clueFile }, nil
+ return &File {
+ File: clueFile,
+ crfs: d.crfs,
+ }, nil
}
}
@@ -103,6 +109,9 @@ func (d *Dir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.Cr
return nil, nil, err
}
clueFile := n.(*cluefs.File)
- cryptFile := &File {File: clueFile}
+ cryptFile := &File {
+ File: clueFile,
+ crfs: d.crfs,
+ }
return cryptFile, cryptFile, nil
}