containerd / continuity

A transport-agnostic, filesystem metadata manifest system
https://containerd.io
Apache License 2.0
138 stars 66 forks source link

fs: ability to filter xattr when copying directory #178

Closed dweomer closed 3 years ago

dweomer commented 3 years ago

Add fs.WithXAttrExcludes functional option for fs.CopyDir that passes down a list of xattr keys to filter out when copying.

This ought to allow for a fix for https://github.com/containerd/containerd/issues/5090

Signed-off-by: Jacob Blain Christen jacob@rancher.com

dweomer commented 3 years ago

/cc @samuelkarp

thaJeztah commented 3 years ago

@cpuguy83 @dmcgowan ptal

dweomer commented 3 years ago

... committing a suggestion breaks DCO?

cpuguy83 commented 3 years ago

@dweomer Yes, its added as a new commit w/o a sign-off.