Allow opening the root dir in flushfs.

geesefs-0-30-9
Aaron Jacobs 2015-05-18 09:58:40 +10:00
parent 9ee0e4a22f
commit 2f2c40a367
1 changed files with 6 additions and 2 deletions

View File

@ -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
} }