Commit fcf1e909 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: hide mountRoot method.

parent cbfa4d27
...@@ -65,7 +65,7 @@ func NewFileSystemConnector(nodeFs FileSystem, opts *Options) (c *FileSystemConn ...@@ -65,7 +65,7 @@ func NewFileSystemConnector(nodeFs FileSystem, opts *Options) (c *FileSystemConn
c.generation = uint64(time.Now().UnixNano()) c.generation = uint64(time.Now().UnixNano())
c.verify() c.verify()
c.MountRoot(nodeFs, opts) c.mountRoot(nodeFs, opts)
// FUSE does not issue a LOOKUP for 1 (obviously), but it does // FUSE does not issue a LOOKUP for 1 (obviously), but it does
// issue a forget. This lookupUpdate is to make the counts match. // issue a forget. This lookupUpdate is to make the counts match.
...@@ -241,7 +241,7 @@ func (c *FileSystemConnector) LookupNode(parent *Inode, path string) *Inode { ...@@ -241,7 +241,7 @@ func (c *FileSystemConnector) LookupNode(parent *Inode, path string) *Inode {
return parent return parent
} }
func (c *FileSystemConnector) MountRoot(nodeFs FileSystem, opts *Options) { func (c *FileSystemConnector) mountRoot(nodeFs FileSystem, opts *Options) {
c.rootNode.mountFs(nodeFs, opts) c.rootNode.mountFs(nodeFs, opts)
c.rootNode.mount.connector = c c.rootNode.mount.connector = c
nodeFs.OnMount(c) nodeFs.OnMount(c)
......
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