From 20b5ac76344433e52faefebe1b8f74cc8191a77e Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 20 Mar 2015 11:22:16 +1100 Subject: [PATCH] flushFS.Init --- samples/flushfs/flush_fs.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/samples/flushfs/flush_fs.go b/samples/flushfs/flush_fs.go index 4f48bc5..07e492f 100644 --- a/samples/flushfs/flush_fs.go +++ b/samples/flushfs/flush_fs.go @@ -17,6 +17,7 @@ package flushfs import ( "github.com/jacobsa/fuse" "github.com/jacobsa/fuse/fuseutil" + "golang.org/x/net/context" ) // Create a file system containing a single file named "foo". @@ -34,3 +35,11 @@ func NewFileSystem( type flushFS struct { fuseutil.NotImplementedFileSystem } + +func (fs *flushFS) Init( + ctx context.Context, + req *fuse.InitRequest) ( + resp *fuse.InitResponse, err error) { + resp = &fuse.InitResponse{} + return +}