Allow opening the root dir in flushfs.
parent
9ee0e4a22f
commit
2f2c40a367
|
@ -259,8 +259,12 @@ func (fs *flushFS) OpenDir(
|
|||
defer fs.mu.Unlock()
|
||||
|
||||
// Sanity check.
|
||||
if op.Inode != barID {
|
||||
err = fuse.ENOSYS
|
||||
switch op.Inode {
|
||||
case fuseops.RootInodeID:
|
||||
case barID:
|
||||
|
||||
default:
|
||||
err = fuse.ENOENT
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue