Moved the factory function.
parent
3739cb6c3a
commit
0b7e54ef6b
|
@ -10,10 +10,6 @@ import (
|
||||||
"github.com/jacobsa/gcsfuse/timeutil"
|
"github.com/jacobsa/gcsfuse/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Create a file system that stores data and metadata in memory.
|
|
||||||
func NewMemFS(
|
|
||||||
clock timeutil.Clock) fuse.FileSystem
|
|
||||||
|
|
||||||
type memFS struct {
|
type memFS struct {
|
||||||
fuseutil.NotImplementedFileSystem
|
fuseutil.NotImplementedFileSystem
|
||||||
|
|
||||||
|
@ -44,3 +40,7 @@ type memFS struct {
|
||||||
// INVARIANT: For all dirs d, all of d's children are in the map.
|
// INVARIANT: For all dirs d, all of d's children are in the map.
|
||||||
inodeIndex map[fuse.InodeID]interface{} // GUARDED_BY(mu)
|
inodeIndex map[fuse.InodeID]interface{} // GUARDED_BY(mu)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create a file system that stores data and metadata in memory.
|
||||||
|
func NewMemFS(
|
||||||
|
clock timeutil.Clock) fuse.FileSystem
|
||||||
|
|
Loading…
Reference in New Issue