From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6001A139083 for ; Fri, 15 Dec 2017 21:17:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92F92E0E7B; Fri, 15 Dec 2017 21:17:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73D21E0E7B for ; Fri, 15 Dec 2017 21:17:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8050833BF3C for ; Fri, 15 Dec 2017 21:17:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A577A19C for ; Fri, 15 Dec 2017 21:17:15 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1513372576.58d44d3f4549a45eac1ec9cc99d497bb104438c3.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: src/ X-VCS-Repository: proj/portage X-VCS-Files: src/portage_util_file_copy_reflink_linux.c X-VCS-Directories: src/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 58d44d3f4549a45eac1ec9cc99d497bb104438c3 X-VCS-Branch: master Date: Fri, 15 Dec 2017 21:17:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e4710315-eb64-42a0-b254-b0876b8274ba X-Archives-Hash: 8d8bf28b16d60971f3d548cf8f453d0b commit: 58d44d3f4549a45eac1ec9cc99d497bb104438c3 Author: Zac Medico gentoo org> AuthorDate: Fri Dec 15 21:16:05 2017 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Dec 15 21:16:16 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=58d44d3f file_copy: handle EOPNOTSUPP from lseek SEEK_DATA (bug 641088) NFS can set the errno to EOPNOTSUPP for lseek SEEK_DATA. Bug: https://bugs.gentoo.org/641088 src/portage_util_file_copy_reflink_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portage_util_file_copy_reflink_linux.c b/src/portage_util_file_copy_reflink_linux.c index c3ce26b2b..81aae873a 100644 --- a/src/portage_util_file_copy_reflink_linux.c +++ b/src/portage_util_file_copy_reflink_linux.c @@ -258,7 +258,7 @@ _reflink_linux_file_copy(PyObject *self, PyObject *args) break; } else if (len < 0) { error = errno; - if (errno == EINVAL && !offset_out) { + if ((errno == EINVAL || errno == EOPNOTSUPP) && !offset_out) { lseek_works = 0; } break;