diff options
author | Jakob Unterwurzacher | 2015-10-04 14:30:57 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-10-04 14:35:50 +0200 |
commit | 5bd08abf4095fb553355c9b007c8ae4a4314b970 (patch) | |
tree | 3956a0da0d232ef0eb82c3471607759979d6719c /cluefs_frontend/fe_fs.go | |
parent | c859f0b2dc8825763c3b63163a014435a8cdb3cf (diff) |
Remove ClueFS frontend
Development has focused on PathFS for some time now and things are
working well.
Diffstat (limited to 'cluefs_frontend/fe_fs.go')
-rw-r--r-- | cluefs_frontend/fe_fs.go | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/cluefs_frontend/fe_fs.go b/cluefs_frontend/fe_fs.go deleted file mode 100644 index 9d677b2..0000000 --- a/cluefs_frontend/fe_fs.go +++ /dev/null @@ -1,46 +0,0 @@ -package cluefs_frontend - -// frontend sits between FUSE and ClueFS -// and uses cryptfs for all crypto operations -// -// cryptfs -// ^ -// | -// v -// FUSE <-> frontend <-> ClueFS -// -// This file handles just the root directory - -import ( - "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 {} - -func (nullTracer) Trace(op cluefs.FsOperTracer) {} - -func NewFS(key []byte, backing string, useOpenssl bool) (*FS, error) { - var tracer nullTracer - clfs, err := cluefs.NewClueFS(backing, tracer) - if err != nil { - return nil, err - } - return &FS { - CryptFS: cryptfs.NewCryptFS(key, useOpenssl), - ClueFS: clfs, - backing: backing, - }, nil -} - -func (fs *FS) Root() (fusefs.Node, error) { - cryptfs.Debug.Printf("Root\n") - return NewDir("", fs.backing, fs), nil -} |