From 54ae602a5c54cb66e7f399b54d981fb4fe1ae56d Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 14:00:18 +1100 Subject: [PATCH] Added dir attributes. --- samples/hello_fs.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/samples/hello_fs.go b/samples/hello_fs.go index 5324839..f3d7de6 100644 --- a/samples/hello_fs.go +++ b/samples/hello_fs.go @@ -75,6 +75,22 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{ Mode: 0400, }, }, + + // dir + dirInode: inodeInfo{ + attributes: fuse.InodeAttributes{ + Mode: 0500 | os.ModeDir, + }, + dir: true, + children: []fuseutil.Dirent{ + fuseutil.Dirent{ + Offset: 1, + Inode: worldInode, + Name: "world", + Type: fuseutil.DT_File, + }, + }, + }, } func findChildInode(