Allow EIO with warning when trying to hardlink

(cherry picked from commit 1a94c2e27a)
This commit is contained in:
Dan Hipschman 2020-11-01 14:26:56 -08:00
parent 326a617ef1
commit af97e2f3a4

View file

@ -300,7 +300,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