aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-05-01 19:12:37 +0200
committerJakob Unterwurzacher2017-05-01 19:12:37 +0200
commitf322ee87e31a6ceb04c25fa62dcde4df6e45f92a (patch)
tree11b5eb46a4b1a9696e380f920fae8f915d1655d5
parent1a89919d80f28ca4126d70bcc1d617145abc2695 (diff)
fusefrontend: rely on nodefs.defaultFile for no-op functions
Now that we embed nodefs.NewDefaultFile(), we can drop our own no-ops.
-rw-r--r--internal/fusefrontend/file.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go
index 0a8c8aa..9784b3e 100644
--- a/internal/fusefrontend/file.go
+++ b/internal/fusefrontend/file.go
@@ -22,6 +22,8 @@ import (
"github.com/rfjakob/gocryptfs/internal/tlog"
)
+var _ nodefs.File = &file{} // Verify that interface is implemented.
+
// File - based on loopbackFile in go-fuse/fuse/nodefs/files.go
type file struct {
fd *os.File
@@ -84,13 +86,6 @@ func (f *file) intFd() int {
return int(f.fd.Fd())
}
-func (f *file) InnerFile() nodefs.File {
- return nil
-}
-
-func (f *file) SetInode(n *nodefs.Inode) {
-}
-
// readFileID loads the file header from disk and extracts the file ID.
// Returns io.EOF if the file is empty.
func (f *file) readFileID() ([]byte, error) {