fusefrontend: rely on nodefs.defaultFile for no-op functions
Now that we embed nodefs.NewDefaultFile(), we can drop our own no-ops.
This commit is contained in:
parent
1a89919d80
commit
f322ee87e3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user