mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 17:57:59 +00:00
Print a warning for too big extended attributes
This commit is contained in:
parent
21884763ac
commit
4c9bc96fb7
1 changed files with 4 additions and 1 deletions
|
@ -621,7 +621,10 @@ def restore_attrs(self, path, item, symlink=False, fd=None):
|
|||
try:
|
||||
xattr.setxattr(fd or path, k, v, follow_symlinks=False)
|
||||
except OSError as e:
|
||||
if e.errno not in (errno.ENOTSUP, errno.EACCES):
|
||||
if e.errno == errno.E2BIG:
|
||||
logger.warning('%s: Value or key of extended attribute %s is too big for this filesystem' %
|
||||
(path, k.decode()))
|
||||
elif e.errno not in (errno.ENOTSUP, errno.EACCES):
|
||||
# only raise if the errno is not on our ignore list:
|
||||
# ENOTSUP == xattrs not supported here
|
||||
# EACCES == permission denied to set this specific xattr
|
||||
|
|
Loading…
Reference in a new issue