We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44386ef commit 82a8cecCopy full SHA for 82a8cec
1 file changed
hca/dss/util/__init__.py
@@ -58,9 +58,10 @@ 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
- # ELINK can occur when max number of links has been reached
62
- # EPERM can occur when writing to NFS
63
- copy_on_error = (errno.EMLINK, errno.EPERM)
+ copy_on_error = (
+ errno.EMLINK, # max. number of hard links exceeded
+ errno.EPERM, # observed on NFS mounts (issue #519)
64
+ )
65
if e.errno in copy_on_error:
66
# FIXME: Copying is not space efficient; see https://github.com/HumanCellAtlas/dcp-cli/issues/453
67
log.warning('Failed to link source `%s` to destination `%s`; reverting to copying', source, link_name)
0 commit comments