From 25a25026361e9210f7d9f02d7cd737df069b56d1 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 24 Mar 2015 16:00:46 +1100 Subject: [PATCH] Updated hellofs. --- samples/hellofs/hello_fs.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/samples/hellofs/hello_fs.go b/samples/hellofs/hello_fs.go index 0297d23..378cde5 100644 --- a/samples/hellofs/hello_fs.go +++ b/samples/hellofs/hello_fs.go @@ -60,6 +60,24 @@ func (fs *helloFS) serve(c *fuse.Connection) { case *fuseops.InitOp: fs.init(typed) + case *fuseops.LookUpInodeOp: + fs.lookUpInode(typed) + + case *fuseops.GetInodeAttributesOp: + fs.getInodeAttributes(typed) + + case *fuseops.OpenDirOp: + fs.openDir(typed) + + case *fuseops.ReadDirOp: + fs.readDir(typed) + + case *fuseops.OpenFileOp: + fs.openFile(typed) + + case *fuseops.ReadFileOp: + fs.readFile(typed) + default: typed.Respond(fuse.ENOSYS) } @@ -222,7 +240,7 @@ func (fs *helloFS) openDir(op *fuseops.OpenDirOp) { op.Respond(nil) } -func (fs *helloFS) readDir(op fuseops.ReadDirOp) { +func (fs *helloFS) readDir(op *fuseops.ReadDirOp) { var err error defer func() { op.Respond(err) }()