From 59855978e23c4e5e188c4249819c8f58b9c1ea7f Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 13:52:43 +1100 Subject: [PATCH] Added attributes for hello. --- samples/hello_fs.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/samples/hello_fs.go b/samples/hello_fs.go index d633bd5..6c6548c 100644 --- a/samples/hello_fs.go +++ b/samples/hello_fs.go @@ -48,7 +48,9 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{ // root rootInode: inodeInfo{ attributes: fuse.InodeAttributes{ - Mode: 0700 | os.ModeDir, + // TODO(jacobsa): Why do we get premission denied errors when this is + // 0500? + Mode: 0555 | os.ModeDir, }, dir: true, children: []fuseutil.Dirent{ @@ -66,6 +68,13 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{ }, }, }, + + // hello + helloInode: inodeInfo{ + attributes: fuse.InodeAttributes{ + Mode: 0400, + }, + }, } func (fs *HelloFS) GetInodeAttributes(