From 55144056066c5a15360c452cac91340a7fb5a426 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 14:03:38 +1100 Subject: [PATCH] Added file sizes. --- samples/hello_fs.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/samples/hello_fs.go b/samples/hello_fs.go index f3d7de6..0856351 100644 --- a/samples/hello_fs.go +++ b/samples/hello_fs.go @@ -73,6 +73,7 @@ var gInodeInfo = map[fuse.InodeID]inodeInfo{ helloInode: inodeInfo{ attributes: fuse.InodeAttributes{ 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(