We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b27f702 commit 44386efCopy full SHA for 44386ef
1 file changed
hca/dss/util/__init__.py
@@ -58,11 +58,9 @@ def hardlink(source, link_name):
58
if source_stat.st_dev != dest_stat.st_dev or source_stat.st_ino != dest_stat.st_ino:
59
raise
60
except OSError as e:
61
- copy_on_error = [
62
- errno.EMLINK, # too many links
63
- errno.EACCES, # permission denied
64
- errno.EPERM, # operation not permitted
65
- ]
+ # ELINK can occur when max number of links has been reached
+ # EPERM can occur when writing to NFS
+ copy_on_error = (errno.EMLINK, errno.EPERM)
66
if e.errno in copy_on_error:
67
# FIXME: Copying is not space efficient; see https://github.com/HumanCellAtlas/dcp-cli/issues/453
68
log.warning('Failed to link source `%s` to destination `%s`; reverting to copying', source, link_name)
0 commit comments