Implemented NewMemFS.

geesefs-0-30-9
Aaron Jacobs 2015-03-02 14:14:02 +11:00
parent 0c265d4161
commit 6f93f4eba9
1 changed files with 11 additions and 2 deletions

View File

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