Allow opening the root dir in flushfs.
parent
9ee0e4a22f
commit
2f2c40a367
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue