Ver código fonte

Allow EIO with warning when trying to hardlink

(cherry picked from commit 1a94c2e27a8009eaa15835d89f8d002ccd771b32)
Dan Hipschman 4 anos atrás
pai
commit
af97e2f3a4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/borg/repository.py

+ 1 - 1
src/borg/repository.py

@@ -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