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.

fix file permission during writes

Chris Lu747377142b5f
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index 192bf6d52d..786abbef2c 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -201,6 +201,8 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error {
if fh.f.attributes != nil {
fh.f.attributes.Mime = fh.contentType
+ fh.f.attributes.Uid = req.Uid
+ fh.f.attributes.Gid = req.Gid
}
request := &filer_pb.UpdateEntryRequest{