Added function stubs.
parent
464201ae12
commit
23b398bc83
|
@ -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 {
|
||||||
// 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 {
|
||||||
|
|
||||||
// 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.")
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue