Implemented NewMemFS.
parent
0c265d4161
commit
6f93f4eba9
|
@ -44,6 +44,15 @@ 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) (fs fuse.FileSystem) {
|
||||||
panic("TODO(jacobsa): Implement NewMemFS.")
|
fs = &memFS{
|
||||||
|
clock: clock,
|
||||||
|
}
|
||||||
|
|
||||||
|
fs.(*memFS).mu = syncutil.NewInvariantMutex(fs.(*memFS).checkInvariants)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fs *memFS) checkInvariants() {
|
||||||
|
panic("TODO")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue