mirror of https://github.com/borgbackup/borg.git
Merge pull request #5463 from d5h/allow-eio-on-hardlink
Allow EIO with warning when trying to hardlink
This commit is contained in:
commit
0e8e614ea9
|
@ -301,7 +301,7 @@ class Repository:
|
|||
try:
|
||||
os.link(config_path, old_config_path)
|
||||
except OSError as e:
|
||||
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.EACCES, errno.ENOTSUP):
|
||||
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.EACCES, errno.ENOTSUP, errno.EIO):
|
||||
logger.warning(link_error_msg)
|
||||
else:
|
||||
raise
|
||||
|
|
Loading…
Reference in New Issue