1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 15:16:51 +02:00

filer: pass along user name and group name for HDFS

This commit is contained in:
Chris Lu 2020-04-27 05:48:48 -07:00
parent 508ec01ab0
commit 725e47dcc3

View file

@ -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,
},
}