Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

report number of blocks in fuse

Stefan Breunigbf243f30d3aa
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
}