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
sync format
chrislu4c75fd5f9c01
diff --git a/weed/mount/weedfs_attr.go b/weed/mount/weedfs_attr.goindex fddba289de..ba0b9a9ff7 100644--- a/weed/mount/weedfs_attr.go+++ b/weed/mount/weedfs_attr.go@@ -61,20 +61,20 @@ func (wfs *WFS) setRootAttr(out *fuse.AttrOut) {func (wfs *WFS) setAttrByPbEntry(out *fuse.Attr, inode uint64, entry *filer_pb.Entry) {out.Ino = inode- out.Uid = entry.Attributes.Uid- out.Gid = entry.Attributes.Gid- out.Mode = toSystemMode(os.FileMode(entry.Attributes.FileMode))+ out.Size = filer.FileSize(entry)+ out.Blocks = (out.Size + blockSize - 1) / blockSize+ setBlksize(out, blockSize)out.Mtime = uint64(entry.Attributes.Mtime)out.Ctime = uint64(entry.Attributes.Mtime)out.Atime = uint64(entry.Attributes.Mtime)+ out.Mode = toSystemMode(os.FileMode(entry.Attributes.FileMode))if entry.HardLinkCounter > 0 {out.Nlink = uint32(entry.HardLinkCounter)} else {out.Nlink = 1}- out.Size = filer.FileSize(entry)- out.Blocks = (out.Size + blockSize - 1) / blockSize- setBlksize(out, blockSize)+ out.Uid = entry.Attributes.Uid+ out.Gid = entry.Attributes.Gid}func (wfs *WFS) setAttrByFilerEntry(out *fuse.Attr, inode uint64, entry *filer.Entry) {