SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
add block size for linux du
Chris Luf53632a84b6c
diff --git a/weed/filesys/file.go b/weed/filesys/file.goindex 236995fa0c..5f7095330a 100644--- a/weed/filesys/file.go+++ b/weed/filesys/file.go@@ -12,6 +12,8 @@ import ("time")+const blockSize = 512+var _ = fs.Node(&File{})var _ = fs.NodeOpener(&File{})var _ = fs.NodeFsyncer(&File{})@@ -40,6 +42,8 @@ func (file *File) Attr(ctx context.Context, attr *fuse.Attr) error {attr.Mtime = time.Unix(file.entry.Attributes.Mtime, 0)attr.Gid = file.entry.Attributes.Gidattr.Uid = file.entry.Attributes.Uid+ attr.Blocks = attr.Size/blockSize + 1+ attr.BlockSize = blockSizereturn nil