Added function stubs.

geesefs-0-30-9
Aaron Jacobs 2015-03-02 14:00:48 +11:00
parent 464201ae12
commit 23b398bc83
2 changed files with 8 additions and 2 deletions

View File

@ -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
}

View File

@ -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.")
}