aboutsummaryrefslogtreecommitdiff
path: root/frontend/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/fs.go')
-rw-r--r--frontend/fs.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/fs.go b/frontend/fs.go
index ba6ad09..83d1953 100644
--- a/frontend/fs.go
+++ b/frontend/fs.go
@@ -1,13 +1,16 @@
package frontend
import (
+ "fmt"
"github.com/rfjakob/gocryptfs/cryptfs"
"github.com/rfjakob/cluefs/lib/cluefs"
+ fusefs "bazil.org/fuse/fs"
)
type FS struct {
*cryptfs.CryptFS
*cluefs.ClueFS
+ backing string
}
type nullTracer struct {}
@@ -23,5 +26,11 @@ func NewFS(key [16]byte, backing string) *FS {
return &FS {
CryptFS: cryptfs.NewCryptFS(key),
ClueFS: clfs,
+ backing: backing,
}
}
+
+func (fs *FS) Root() (fusefs.Node, error) {
+ fmt.Printf("Root\n")
+ return NewDir("", fs.backing, fs), nil
+}