From 05091dee19756c6df0960215b6f589fa3c1aba55 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 19 May 2015 16:06:57 +1000 Subject: [PATCH] Added file system support. --- fuseutil/file_system.go | 4 ++++ fuseutil/not_implemented_file_system.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/fuseutil/file_system.go b/fuseutil/file_system.go index ecc8795..378edd3 100644 --- a/fuseutil/file_system.go +++ b/fuseutil/file_system.go @@ -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) } } diff --git a/fuseutil/not_implemented_file_system.go b/fuseutil/not_implemented_file_system.go index 670f254..a3b3342 100644 --- a/fuseutil/not_implemented_file_system.go +++ b/fuseutil/not_implemented_file_system.go @@ -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) +}