From bf243f30d3aa006ac9ce4f5d824ed390fb908b4b Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Sat, 12 Nov 2016 14:10:36 +0100 Subject: [PATCH] report number of blocks in fuse --- cmd/mount/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mount/file.go b/cmd/mount/file.go index 4d31fcf8a..e15283710 100644 --- a/cmd/mount/file.go +++ b/cmd/mount/file.go @@ -62,6 +62,7 @@ func (f *File) Attr(ctx context.Context, a *fuse.Attr) error { a.Crtime = modTime } } + a.Blocks = (a.Size + 511) / 512 return nil }