From 2790095b6b83f7b329cbcfe2dd15bdd35bf26b8f Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 2 Mar 2015 14:14:49 +1100 Subject: [PATCH] Implemented Init. --- samples/memfs/fs.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/memfs/fs.go b/samples/memfs/fs.go index 95524b6..04ebc6e 100644 --- a/samples/memfs/fs.go +++ b/samples/memfs/fs.go @@ -8,6 +8,7 @@ import ( "github.com/jacobsa/fuse/fuseutil" "github.com/jacobsa/gcloud/syncutil" "github.com/jacobsa/gcsfuse/timeutil" + "golang.org/x/net/context" ) type memFS struct { @@ -56,3 +57,10 @@ func NewMemFS( func (fs *memFS) checkInvariants() { panic("TODO") } + +func (fs *memFS) Init( + ctx context.Context, + req *fuse.InitRequest) (resp *fuse.InitResponse, err error) { + resp = &fuse.InitResponse{} + return +}