Added file system support.

geesefs-0-30-9
Aaron Jacobs 2015-05-19 16:06:57 +10:00
parent aa6498ca1b
commit 05091dee19
2 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,7 @@ type FileSystem interface {
SyncFile(*fuseops.SyncFileOp)
FlushFile(*fuseops.FlushFileOp)
ReleaseFileHandle(*fuseops.ReleaseFileHandleOp)
ReadSymlink(*fuseops.ReadSymlinkOp)
}
// Create a fuse.Server that handles ops by calling the associated FileSystem
@ -185,5 +186,8 @@ func (s fileSystemServer) handleOp(op fuseops.Op) {
case *fuseops.ReleaseFileHandleOp:
s.fs.ReleaseFileHandle(typed)
case *fuseops.ReadSymlinkOp:
s.fs.ReadSymlink(typed)
}
}

View File

@ -122,3 +122,8 @@ func (fs *NotImplementedFileSystem) ReleaseFileHandle(
op *fuseops.ReleaseFileHandleOp) {
op.Respond(fuse.ENOSYS)
}
func (fs *NotImplementedFileSystem) ReadSymlink(
op *fuseops.ReadSymlinkOp) {
op.Respond(fuse.ENOSYS)
}