From 57b4e8798f66aca47f83464d9e6527ee72555cd8 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Wed, 9 Sep 2015 22:55:39 +1000 Subject: [PATCH] Fixed other tests on OS X. --- samples/cachingfs/caching_fs.go | 6 ++++++ samples/errorfs/error_fs.go | 6 ++++++ samples/flushfs/flush_fs.go | 6 ++++++ samples/forgetfs/forget_fs.go | 6 ++++++ samples/hellofs/hello_fs.go | 6 ++++++ samples/interruptfs/interrupt_fs.go | 6 ++++++ samples/memfs/memfs.go | 6 ++++++ 7 files changed, 42 insertions(+) diff --git a/samples/cachingfs/caching_fs.go b/samples/cachingfs/caching_fs.go index ebc7b7c..b7c7d3e 100644 --- a/samples/cachingfs/caching_fs.go +++ b/samples/cachingfs/caching_fs.go @@ -261,6 +261,12 @@ func (fs *cachingFS) SetKeepCache(keep bool) { // FileSystem methods //////////////////////////////////////////////////////////////////////// +func (fs *cachingFS) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + // LOCKS_EXCLUDED(fs.mu) func (fs *cachingFS) LookUpInode( ctx context.Context, diff --git a/samples/errorfs/error_fs.go b/samples/errorfs/error_fs.go index 359af08..04d4c8b 100644 --- a/samples/errorfs/error_fs.go +++ b/samples/errorfs/error_fs.go @@ -119,6 +119,12 @@ func (fs *errorFS) GetInodeAttributes( return } +func (fs *errorFS) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + // LOCKS_EXCLUDED(fs.mu) func (fs *errorFS) LookUpInode( ctx context.Context, diff --git a/samples/flushfs/flush_fs.go b/samples/flushfs/flush_fs.go index 2963519..4502510 100644 --- a/samples/flushfs/flush_fs.go +++ b/samples/flushfs/flush_fs.go @@ -117,6 +117,12 @@ func (fs *flushFS) getAttributes(id fuseops.InodeID) ( // FileSystem methods //////////////////////////////////////////////////////////////////////// +func (fs *flushFS) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + func (fs *flushFS) LookUpInode( ctx context.Context, op *fuseops.LookUpInodeOp) (err error) { diff --git a/samples/forgetfs/forget_fs.go b/samples/forgetfs/forget_fs.go index 697ffed..01ef35c 100644 --- a/samples/forgetfs/forget_fs.go +++ b/samples/forgetfs/forget_fs.go @@ -224,6 +224,12 @@ func (fs *fsImpl) findInodeByID(id fuseops.InodeID) (in *inode) { // FileSystem methods //////////////////////////////////////////////////////////////////////// +func (fs *fsImpl) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + func (fs *fsImpl) LookUpInode( ctx context.Context, op *fuseops.LookUpInodeOp) (err error) { diff --git a/samples/hellofs/hello_fs.go b/samples/hellofs/hello_fs.go index 0d31559..36ea2f3 100644 --- a/samples/hellofs/hello_fs.go +++ b/samples/hellofs/hello_fs.go @@ -149,6 +149,12 @@ func (fs *helloFS) patchAttributes( attr.Crtime = now } +func (fs *helloFS) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + func (fs *helloFS) LookUpInode( ctx context.Context, op *fuseops.LookUpInodeOp) (err error) { diff --git a/samples/interruptfs/interrupt_fs.go b/samples/interruptfs/interrupt_fs.go index f6724bb..d44f109 100644 --- a/samples/interruptfs/interrupt_fs.go +++ b/samples/interruptfs/interrupt_fs.go @@ -100,6 +100,12 @@ func (fs *InterruptFS) EnableFlushBlocking() { // FileSystem methods //////////////////////////////////////////////////////////////////////// +func (fs *InterruptFS) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + func (fs *InterruptFS) LookUpInode( ctx context.Context, op *fuseops.LookUpInodeOp) (err error) { diff --git a/samples/memfs/memfs.go b/samples/memfs/memfs.go index 1d4032c..c9e5dda 100644 --- a/samples/memfs/memfs.go +++ b/samples/memfs/memfs.go @@ -184,6 +184,12 @@ func (fs *memFS) deallocateInode(id fuseops.InodeID) { // FileSystem methods //////////////////////////////////////////////////////////////////////// +func (fs *memFS) StatFS( + ctx context.Context, + op *fuseops.StatFSOp) (err error) { + return +} + func (fs *memFS) LookUpInode( ctx context.Context, op *fuseops.LookUpInodeOp) (err error) {