Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract: improve setxattr exception handling #5592

Merged

Conversation

ThomasWaldmann
Copy link
Member

fixes #5092.

…gbackup#5092

emit a warning message giving the path, xattr key and error message.

also: continue trying to restore other xattrs and bsdflags afterwards
(it did not continue with this before this fix).
otherwise it is just like: [Errno NN] Exxxxx
@codecov-io
Copy link

codecov-io commented Dec 25, 2020

Codecov Report

Merging #5592 (227dccd) into master (2b992fe) will increase coverage by 0.26%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5592      +/-   ##
==========================================
+ Coverage   82.96%   83.23%   +0.26%     
==========================================
  Files          38       38              
  Lines       10069    10069              
  Branches     1672     1671       -1     
==========================================
+ Hits         8354     8381      +27     
+ Misses       1215     1191      -24     
+ Partials      500      497       -3     
Impacted Files Coverage Δ
src/borg/xattr.py 50.00% <0.00%> (ø)
src/borg/archiver.py 80.33% <0.00%> (+0.44%) ⬆️
src/borg/archive.py 82.18% <0.00%> (+1.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b992fe...227dccd. Read the comment docs.

@ThomasWaldmann ThomasWaldmann merged commit 050a705 into borgbackup:master Dec 25, 2020
@ThomasWaldmann ThomasWaldmann deleted the extract-xattr-eperm-master branch December 25, 2020 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

attrs: [Errno 1] Operation not permitted: '<FD 7>'
2 participants