mirror of
https://github.com/rclone/rclone.git
synced 2026-10-26 13:28:33 -04:00
report number of blocks in fuse
This commit is contained in:
1 parent
3ce82facac
commit
bf243f30d3
1 file changed
+1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user