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
[mount] fix GetAttr blocks count (#5409)
wusonga5582cc9212b
diff --git a/weed/mount/weedfs_attr.go b/weed/mount/weedfs_attr.goindex 9cd643d956..c389e0627d 100644--- a/weed/mount/weedfs_attr.go+++ b/weed/mount/weedfs_attr.go@@ -145,7 +145,6 @@ func (wfs *WFS) setRootAttr(out *fuse.AttrOut) {func (wfs *WFS) setAttrByPbEntry(out *fuse.Attr, inode uint64, entry *filer_pb.Entry, calculateSize bool) {out.Ino = inode- out.Blocks = (out.Size + blockSize - 1) / blockSizesetBlksize(out, blockSize)if entry == nil {return@@ -159,6 +158,7 @@ func (wfs *WFS) setAttrByPbEntry(out *fuse.Attr, inode uint64, entry *filer_pb.Eif entry.FileMode()&os.ModeSymlink != 0 {out.Size = uint64(len(entry.Attributes.SymlinkTarget))}+ out.Blocks = (out.Size + blockSize - 1) / blockSizeout.Mtime = uint64(entry.Attributes.Mtime)out.Ctime = uint64(entry.Attributes.Mtime)out.Atime = uint64(entry.Attributes.Mtime)