Commit 23b398bc authored by Aaron Jacobs's avatar Aaron Jacobs

Added function stubs.

parent 464201ae
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package memfs package memfs
import ( import (
"errors"
"sync" "sync"
"github.com/jacobsa/fuse" "github.com/jacobsa/fuse"
...@@ -29,4 +30,7 @@ type memFile struct { ...@@ -29,4 +30,7 @@ type memFile struct {
// TODO(jacobsa): Add a test that various WriteAt calls with a real on-disk // 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 // file to verify what the behavior should be here, particularly when starting
// a write well beyond EOF. Leave the test around for documentation purposes. // 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
}
...@@ -43,4 +43,6 @@ type memFS struct { ...@@ -43,4 +43,6 @@ type memFS struct {
// Create a file system that stores data and metadata in memory. // Create a file system that stores data and metadata in memory.
func NewMemFS( func NewMemFS(
clock timeutil.Clock) fuse.FileSystem clock timeutil.Clock) fuse.FileSystem {
panic("TODO(jacobsa): Implement NewMemFS.")
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment