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
POSIX: adjust ctime for file truncate
chrislucaf0a3486b6e
diff --git a/weed/filesys/file.go b/weed/filesys/file.goindex 2ba9f65094..063c431b0c 100644--- a/weed/filesys/file.go+++ b/weed/filesys/file.go@@ -68,6 +68,7 @@ func (file *File) Attr(ctx context.Context, attr *fuse.Attr) (err error) {glog.V(4).Infof("file Attr %s, open:%v, size: %d", file.fullpath(), file.isOpen, attr.Size)}attr.Crtime = time.Unix(entry.Attributes.Crtime, 0)+ attr.Ctime = time.Unix(entry.Attributes.Mtime, 0)attr.Mtime = time.Unix(entry.Attributes.Mtime, 0)attr.Gid = entry.Attributes.Gidattr.Uid = entry.Attributes.Uid@@ -141,6 +142,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f}entry.Chunks = chunks}+ entry.Attributes.Mtime = time.Now().Unix()entry.Attributes.FileSize = req.Sizefile.dirtyMetadata = true}