From 85d95b742c7cb545f4d460e92d986a440df2f991 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 13:36:20 +1100 Subject: [PATCH] Added attributes for the root inode. --- samples/hello_fs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/hello_fs.go b/samples/hello_fs.go index 034e07d..9ad5c92 100644 --- a/samples/hello_fs.go +++ b/samples/hello_fs.go @@ -32,6 +32,8 @@ const ( ) type inodeInfo struct { + attributes fuse.InodeAttributes + // File or directory? dir bool @@ -43,7 +45,8 @@ type inodeInfo struct { var gInodeInfo = map[fuse.InodeID]inodeInfo{ // root rootInode: inodeInfo{ - dir: true, + attributes: fuse.InodeAttributes{}, + dir: true, children: []fuseutil.Dirent{ fuseutil.Dirent{ Offset: 1,