Added file sizes.

geesefs-0-30-9
Aaron Jacobs 2015-02-27 14:03:38 +11:00
parent 4380b9ba90
commit 5514405606
1 changed files with 9 additions and 0 deletions

View File

@ -73,6 +73,7 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
helloInode: inodeInfo{ helloInode: inodeInfo{
attributes: fuse.InodeAttributes{ attributes: fuse.InodeAttributes{
Mode: 0400, Mode: 0400,
Size: uint64(len("Hello, world!")),
}, },
}, },
@ -91,6 +92,14 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{
}, },
}, },
}, },
// world
worldInode: inodeInfo{
attributes: fuse.InodeAttributes{
Mode: 0400,
Size: uint64(len("Hello, world!")),
},
},
} }
func findChildInode( func findChildInode(