Added attributes for hello.

geesefs-0-30-9
Aaron Jacobs 2015-02-27 13:52:43 +11:00
parent 72e4ed930d
commit 59855978e2
1 changed files with 10 additions and 1 deletions

View File

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