diff --git a/samples/memfs/file.go b/samples/memfs/file.go index 9c7cb30..c29e5d4 100644 --- a/samples/memfs/file.go +++ b/samples/memfs/file.go @@ -4,6 +4,7 @@ package memfs import ( + "errors" "sync" "github.com/jacobsa/fuse" @@ -29,4 +30,7 @@ type memFile struct { // TODO(jacobsa): Add a test that various WriteAt calls with a real on-disk // file to verify what the behavior should be here, particularly when starting // a write well beyond EOF. Leave the test around for documentation purposes. -func (f *memFile) WriteAt(p []byte, off int64) (n int, err error) +func (f *memFile) WriteAt(p []byte, off int64) (n int, err error) { + err = errors.New("TODO(jacobsa): Implement memFile.WriteAt.") + return +} diff --git a/samples/memfs/fs.go b/samples/memfs/fs.go index edc163e..919618e 100644 --- a/samples/memfs/fs.go +++ b/samples/memfs/fs.go @@ -43,4 +43,6 @@ type memFS struct { // Create a file system that stores data and metadata in memory. func NewMemFS( - clock timeutil.Clock) fuse.FileSystem + clock timeutil.Clock) fuse.FileSystem { + panic("TODO(jacobsa): Implement NewMemFS.") +}