Skip to content

Commit b05c0fd

Browse files
author
Xiaodong Ye
committed
xattr lost when copying directory
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 1097c8b commit b05c0fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fs/copy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ func copyDirectory(dst, src string, inodes map[uint64]string, o *copyDirOpts) er
104104
return errors.Wrapf(err, "failed to copy file info for %s", dst)
105105
}
106106

107+
if err := copyXAttrs(dst, src, o.xeh); err != nil {
108+
return errors.Wrap(err, "failed to copy xattrs")
109+
}
110+
107111
for _, fi := range fis {
108112
source := filepath.Join(src, fi.Name())
109113
target := filepath.Join(dst, fi.Name())

0 commit comments

Comments
 (0)