aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-27 05:48:48 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-27 05:48:48 -0700
commit725e47dcc36801b2dcd904d29f979a05eb1be50c (patch)
tree3bb288f7b1d59afe40ef202d0e7c293b15a2d38e /weed
parent508ec01ab0668ab7ec7ba8a8484e043ac6c7b237 (diff)
downloadseaweedfs-725e47dcc36801b2dcd904d29f979a05eb1be50c.tar.xz
seaweedfs-725e47dcc36801b2dcd904d29f979a05eb1be50c.zip
filer: pass along user name and group name for HDFS
Diffstat (limited to 'weed')
-rw-r--r--weed/filer2/filer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index ee245fa34..666ab8fe4 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,
},
}