mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-16 04:29:46 +08:00
filer: add file extended properties
This commit is contained in:
parent
b9c1f3e9de
commit
63373a9f9f
@ -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 {
|
||||||
|
@ -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…
Reference in New Issue
Block a user