1
mirror of https://github.com/rclone/rclone synced 2024-11-27 05:23:40 +01:00

report number of blocks in fuse

This commit is contained in:
Stefan Breunig 2016-11-12 14:10:36 +01:00
parent 3ce82facac
commit bf243f30d3

View File

@ -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
}