Skip to content

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.

set attributes include crtime

Chris Lua8af1e3f5fee
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index fd7903b205..a1f2f7fbc7 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -97,6 +97,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
file.entry.Attributes.Gid = req.Gid
}
+ if req.Valid.Crtime() {
+ file.entry.Attributes.Crtime = req.Crtime.Unix()
+ }
+
if req.Valid.Mtime() {
file.entry.Attributes.Mtime = req.Mtime.Unix()
}