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
support hdfs user name and group names
Chris Lub0838db5a880
diff --git a/weed/filer2/entry.go b/weed/filer2/entry.goindex 11318a3ae0..f5c883d447 100644--- a/weed/filer2/entry.go+++ b/weed/filer2/entry.go@@ -17,6 +17,8 @@ type Attr struct {Replication string // replicationCollection string // collection nameTtlSec int32 // ttl in seconds+ UserName string+ GroupNames []string}func (attr Attr) IsDirectory() bool {diff --git a/weed/filer2/entry_codec.go b/weed/filer2/entry_codec.goindex baa6a9440c..71b0dea408 100644--- a/weed/filer2/entry_codec.go+++ b/weed/filer2/entry_codec.go@@ -44,6 +44,8 @@ func EntryAttributeToPb(entry *Entry) *filer_pb.FuseAttributes {Collection: entry.Attr.Collection,Replication: entry.Attr.Replication,TtlSec: entry.Attr.TtlSec,+ UserName: entry.Attr.UserName,+ GroupName: entry.Attr.GroupNames,}}@@ -60,6 +62,8 @@ func PbToEntryAttribute(attr *filer_pb.FuseAttributes) Attr {t.Collection = attr.Collectiont.Replication = attr.Replicationt.TtlSec = attr.TtlSec+ t.UserName = attr.UserName+ t.GroupNames = attr.GroupNamereturn t}