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.

filer: pass along user name and group name for HDFS

Chris Lu725e47dcc368
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index ee245fa341..666ab8fe4d 100644
--- a/weed/filer2/filer.go
+++ b/weed/filer2/filer.go
@@ -122,11 +122,13 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool) erro
Attr: Attr{
Mtime: now,
Crtime: now,
- Mode: os.ModeDir | 0770,
+ Mode: os.ModeDir | entry.Mode | 0110,
Uid: entry.Uid,
Gid: entry.Gid,
Collection: entry.Collection,
Replication: entry.Replication,
+ UserName: entry.UserName,
+ GroupNames: entry.GroupNames,
},
}