diff --git a/samples/flushfs/flush_fs.go b/samples/flushfs/flush_fs.go index e497e31..a1657c6 100644 --- a/samples/flushfs/flush_fs.go +++ b/samples/flushfs/flush_fs.go @@ -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 }