From 9ee0551b8cb7cea2c0af111f2c3ae99eedf6e6f4 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 17 Mar 2015 13:36:55 +1100 Subject: [PATCH] Fixed a bug. --- samples/cachingfs/caching_fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cachingfs/caching_fs.go b/samples/cachingfs/caching_fs.go index 00a6a15..32685c6 100644 --- a/samples/cachingfs/caching_fs.go +++ b/samples/cachingfs/caching_fs.go @@ -266,7 +266,7 @@ func (fs *cachingFS) LookUpInode( case "bar": // Parent must be dir. - if req.Parent%numInodes != dirOffset { + if req.Parent == fuse.RootInodeID || req.Parent%numInodes != dirOffset { err = fuse.ENOENT return }