From 63373a9f9f61b6a59d4029cf33c486384d255914 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 21 Sep 2020 11:08:34 -0700 Subject: [PATCH] filer: add file extended properties --- weed/server/filer_grpc_server.go | 1 + weed/server/filer_grpc_server_rename.go | 1 + 2 files changed, 2 insertions(+) diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go index d1fda117f..41dcedba5 100644 --- a/weed/server/filer_grpc_server.go +++ b/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), Attr: filer.PbToEntryAttribute(req.Entry.Attributes), Chunks: chunks, + Extended: req.Entry.Extended, }, req.OExcl, req.IsFromOtherCluster, req.Signatures) if createErr == nil { diff --git a/weed/server/filer_grpc_server_rename.go b/weed/server/filer_grpc_server_rename.go index 35df01665..f9ddeb600 100644 --- a/weed/server/filer_grpc_server_rename.go +++ b/weed/server/filer_grpc_server_rename.go @@ -109,6 +109,7 @@ func (fs *FilerServer) moveSelfEntry(ctx context.Context, oldParent util.FullPat FullPath: newPath, Attr: entry.Attr, Chunks: entry.Chunks, + Extended: entry.Extended, } createErr := fs.filer.CreateEntry(ctx, newEntry, false, false, nil) if createErr != nil {