aboutsummaryrefslogtreecommitdiff
path: root/frontend/fs.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-05 11:49:05 +0200
committerJakob Unterwurzacher2015-09-05 11:49:05 +0200
commit05a5c0a0fffb4cb27c6e2dccda42d18ee067631c (patch)
tree11e83610503ea4e0f4cf7296979b6d358eff4e5d /frontend/fs.go
parent6f90ec716a0e486628297a8d74e9f4d8d895e744 (diff)
Wrap cluefs part I
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
+}