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
reduce weed mount memory usage
Chris Lu60421b23f0b3
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.goindex caeada482c..44f4f48cc3 100644--- a/weed/filesys/dir.go+++ b/weed/filesys/dir.go@@ -31,8 +31,10 @@ var _ = fs.NodeSetattrer(&Dir{})func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error {+ // https://github.com/bazil/fuse/issues/196+ attr.Valid = time.Second+if dir.Path == "/" {- attr.Valid = time.Secondattr.Mode = os.ModeDir | 0777return nil}@@ -83,9 +85,6 @@ func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error {// glog.V(1).Infof("dir %s permission: %v", dir.Path, os.FileMode(attributes.FileMode))attr.Mode = os.FileMode(dir.attributes.FileMode) | os.ModeDir- if dir.Path == "/" && dir.attributes.FileMode == 0 {- attr.Valid = time.Second- }attr.Mtime = time.Unix(dir.attributes.Mtime, 0)attr.Ctime = time.Unix(dir.attributes.Crtime, 0)