Commit 2f2c40a3 authored by Aaron Jacobs's avatar Aaron Jacobs

Allow opening the root dir in flushfs.

parent 9ee0e4a2
...@@ -259,8 +259,12 @@ func (fs *flushFS) OpenDir( ...@@ -259,8 +259,12 @@ func (fs *flushFS) OpenDir(
defer fs.mu.Unlock() defer fs.mu.Unlock()
// Sanity check. // Sanity check.
if op.Inode != barID { switch op.Inode {
err = fuse.ENOSYS case fuseops.RootInodeID:
case barID:
default:
err = fuse.ENOENT
return return
} }
......
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