diff options
author | 2017-12-15 16:37:40 -0800 | |
---|---|---|
committer | 2017-12-15 16:38:18 -0800 | |
commit | dad9cce8a1e2360e8483e0f78e29e20bd5fdce49 (patch) | |
tree | c1ddf74b40b933e7075661efbd7fbe7c41ded259 /src | |
parent | file_copy: handle EOPNOTSUPP from lseek SEEK_DATA (bug 641088) (diff) | |
download | portage-dad9cce8a1e2360e8483e0f78e29e20bd5fdce49.tar.gz portage-dad9cce8a1e2360e8483e0f78e29e20bd5fdce49.tar.bz2 portage-dad9cce8a1e2360e8483e0f78e29e20bd5fdce49.zip |
file_copy: handle EOPNOTSUPP from copy_file_range (bug 641088)
NFS can set the errno to EOPNOTSUPP for copy_file_range.
Bug: https://bugs.gentoo.org/641088
Diffstat (limited to 'src')
-rw-r--r-- | src/portage_util_file_copy_reflink_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portage_util_file_copy_reflink_linux.c b/src/portage_util_file_copy_reflink_linux.c index 81aae873a..352342c06 100644 --- a/src/portage_util_file_copy_reflink_linux.c +++ b/src/portage_util_file_copy_reflink_linux.c @@ -271,7 +271,7 @@ _reflink_linux_file_copy(PyObject *self, PyObject *args) if (copyfunc_ret < 0) { error = errno; - if ((errno == EXDEV || errno == ENOSYS) && + if ((errno == EXDEV || errno == ENOSYS || errno == EOPNOTSUPP) && copyfunc == cfr_wrapper) { /* Use sendfile instead of copy_file_range for * cross-device copies, or when the copy_file_range |