Browse Source

filer: add file extended properties

pull/1475/head
Chris Lu 4 years ago
parent
commit
63373a9f9f
  1. 1
      weed/server/filer_grpc_server.go
  2. 1
      weed/server/filer_grpc_server_rename.go

1
weed/server/filer_grpc_server.go

@ -164,6 +164,7 @@ func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntr
FullPath: util.JoinPath(req.Directory, req.Entry.Name), FullPath: util.JoinPath(req.Directory, req.Entry.Name),
Attr: filer.PbToEntryAttribute(req.Entry.Attributes), Attr: filer.PbToEntryAttribute(req.Entry.Attributes),
Chunks: chunks, Chunks: chunks,
Extended: req.Entry.Extended,
}, req.OExcl, req.IsFromOtherCluster, req.Signatures) }, req.OExcl, req.IsFromOtherCluster, req.Signatures)
if createErr == nil { if createErr == nil {

1
weed/server/filer_grpc_server_rename.go

@ -109,6 +109,7 @@ func (fs *FilerServer) moveSelfEntry(ctx context.Context, oldParent util.FullPat
FullPath: newPath, FullPath: newPath,
Attr: entry.Attr, Attr: entry.Attr,
Chunks: entry.Chunks, Chunks: entry.Chunks,
Extended: entry.Extended,
} }
createErr := fs.filer.CreateEntry(ctx, newEntry, false, false, nil) createErr := fs.filer.CreateEntry(ctx, newEntry, false, false, nil)
if createErr != nil { if createErr != nil {

Loading…
Cancel
Save