Closed AkihiroSuda closed 5 years ago
cc @tonistiigi
So the PR appeared to have nothing to do with the buildkit failure but should be still useful
Please consider this change on top of yours. It continues copying xattrs for a file, even if one of them fails (like security.selinux
).
Feel free to incorporate the modification in an updated PR. Thanks!
@nixpanic Thanks, cherry-picked your commit
@dmcgowan @cpuguy83 PTAL?
Oh, nice! Also related: https://github.com/moby/moby/issues/38155
I think for this case, being able to pass in an error handler on file copy would be handy.
Something like:
func(err error) error
Where if the handler wants to ignore the error it would return nil.
Added type XAttrErrorHandler func(dst, src, xattrKey string, err error) error
. PTAL.
Hey guys, any progress with reviewing/merging? This PR works well for me and I'd like to see it included so that I can consume it in kubernetes-incubator/external-storage#1013 and a future CSI driver.
Thanks!
This option allows ignoring errors during copying xattr like
security.selinux
, which is not always supported.Reported in several issues including
Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp