Commit 6f93f4eb authored by Aaron Jacobs's avatar Aaron Jacobs

Implemented NewMemFS.

parent 0c265d41
......@@ -44,6 +44,15 @@ type memFS struct {
// Create a file system that stores data and metadata in memory.
func NewMemFS(
clock timeutil.Clock) fuse.FileSystem {
panic("TODO(jacobsa): Implement NewMemFS.")
clock timeutil.Clock) (fs fuse.FileSystem) {
fs = &memFS{
clock: clock,
}
fs.(*memFS).mu = syncutil.NewInvariantMutex(fs.(*memFS).checkInvariants)
return
}
func (fs *memFS) checkInvariants() {
panic("TODO")
}
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