Browse Source

filer: pass along user name and group name for HDFS

pull/1293/head
Chris Lu 5 years ago
parent
commit
725e47dcc3
  1. 4
      weed/filer2/filer.go

4
weed/filer2/filer.go

@ -122,11 +122,13 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool) erro
Attr: Attr{ Attr: Attr{
Mtime: now, Mtime: now,
Crtime: now, Crtime: now,
Mode: os.ModeDir | 0770,
Mode: os.ModeDir | entry.Mode | 0110,
Uid: entry.Uid, Uid: entry.Uid,
Gid: entry.Gid, Gid: entry.Gid,
Collection: entry.Collection, Collection: entry.Collection,
Replication: entry.Replication, Replication: entry.Replication,
UserName: entry.UserName,
GroupNames: entry.GroupNames,
}, },
} }

Loading…
Cancel
Save