aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend/file.go')
-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) {