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.

avoid "fchmod failed" during cp

Chris Lu2ec6a679c2e8
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index 6c07345a09..812137fe29 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -105,6 +105,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
file.entry.Attributes.Mtime = req.Mtime.Unix()
}
+ if file.isOpen {
+ return nil
+ }
+
return file.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error {
request := &filer_pb.UpdateEntryRequest{