From patchwork Tue Nov 5 05:43:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Seiichi Ikarashi (Fujitsu)" X-Patchwork-Id: 13862345 Received: from esa2.fujitsucc.c3s2.iphmx.com (esa2.fujitsucc.c3s2.iphmx.com [68.232.152.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66304183CD6 for ; Tue, 5 Nov 2024 05:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=68.232.152.246 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730785489; cv=fail; b=gQaGKklC9hQv0ty0xqJzU/TxOV4Z5mTC0MIV7mvWu/O3nv8+HAsX9DcOG6jLU13wGkrD/xX5y3Je6ApggglQDnRrHEIbX5MLpNkaiJmiQ/r41RLgDUNv9tkoSQkxEEN+SgT8q5BIXPgRD8h3gOhVOHOjoZn0MXIzjtu4/JajjLE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730785489; c=relaxed/simple; bh=t/9n0ekh5DTpKe6jyRjwvCqNjLKadWuOJX2y0UoHJ+E=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=TbySL9EUR8xZ3D/bOoR594rW8GaSF0FhtrjsMDQZLyRApQbWpEa7eSNPi+JAC5q3YfIBsgL9vis+wnq4am1PsiMsm6fWxoVusdK56rtqjBPZ7ZNd+OOXQxFLHszByMH5fUt3SBUdhBwarWGyGVP3IhIiQx2Xl3C+EsCsWZEXTMI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fujitsu.com; spf=pass smtp.mailfrom=fujitsu.com; dkim=pass (2048-bit key) header.d=fujitsu.com header.i=@fujitsu.com header.b=k4Wb2AyC; arc=fail smtp.client-ip=68.232.152.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fujitsu.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fujitsu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fujitsu.com header.i=@fujitsu.com header.b="k4Wb2AyC" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1730785487; x=1762321487; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=t/9n0ekh5DTpKe6jyRjwvCqNjLKadWuOJX2y0UoHJ+E=; b=k4Wb2AyCJPHF8G6fmdXgvn1LuvEeslKt+O9HKnmBBejMUSN23siOXyjW efnnsQ0WatGpBOrBmAp2ltjpaJ5EPL9d6omszQtUp0vBINYx+JLNb6l82 sDOJYUg3zp2S4h6Sp1ZfUpQL9yG2BY88VpOjGth0ui/QejXocVXildVg4 TRURWdCSFRK7uYQnQIkZWFC0AWrm/hq41P4qlWABMRn/jE5f34dkgENx4 HHy/BBaC5VK6ChO2qS7HRFHVEfT5dAbp8z+TsOyIoDFyLTB4C5fp6SJ9T x4tgM/agOpqv8cuiaJfwJL/Ntddm1A+JgUROmldop4VtkMr7ODbRKbeJg g==; X-CSE-ConnectionGUID: fX5K4W3vShigefUVEF2Zeg== X-CSE-MsgGUID: +ZK+6+31TEuY0uwnIQd8Qw== X-IronPort-AV: E=McAfee;i="6700,10204,11246"; a="46868702" X-IronPort-AV: E=Sophos;i="6.11,259,1725289200"; d="scan'208";a="46868702" Received: from mail-japanwestazlp17010003.outbound.protection.outlook.com (HELO OS0P286CU011.outbound.protection.outlook.com) ([40.93.130.3]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2024 14:43:34 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Y1r+195m2VkdIKqkQe08117AjACaqZm+6F+fpiIkVZEICantA4kGfwqRuTFbMQy63msOGEYXMe9RZrv4UdlLpoQ1Mf0CrwTH4LObViY+Zrx/FiTsrIRxNrdTP1DofQK8ElsxDIeqBIzJywZ46tfhPq4Fjw7+YXG5N0kwERTYOevnLJo8445u4qnYzFQw64p3p0uTNiLDpC6UH4ufwVMqTi6ZVvcx3jzFk6I+uSmqs2P/UH7UFGbS+AawSsPYBRJnUf+SBiCEPDju+OqKayO252b2/PkIrWfi8T4s1k141baD+9NcwRv2ck6YPIzQpm9Us7qzQYIFc+fs+kYYuQLqqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nm2MN0vx8zPAuSHtyTePz5flVeN6oVhE19FqG8LNhnY=; b=I8oPFR5Hm8mUCntXp1CYqUNsMsEap8MVD5ul9pqfZvYvi82Av8NwmQytXYA3Q3kp4vXAnwd2SaFrFn2jXchYBeDRjGgX3yTVwgxJySsu4ztv7LElfEpK58IAZHTmz1+A+911Q1RM4CwDvV4ZwDrUuDTP/3MrMRWVsDzGF1HXBeqJEkZ4brI408lb3i33CZR1ZcZUTNnJCSw0W/HHq0gXiT84fD+dV4I+vf/rTd9l2dZyceBx/SdlWZV2PPke0u0KcYHDHaPCdbEcJbxQd8OiIFzBgvYqOpVncgbKaf4KOrXLSO254KIylPP4qehGSiirvRG8uLvJEHX3JLkPIc26TA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none Received: from OSZPR01MB7772.jpnprd01.prod.outlook.com (2603:1096:604:1b4::7) by OSZPR01MB8579.jpnprd01.prod.outlook.com (2603:1096:604:18d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Tue, 5 Nov 2024 05:43:30 +0000 Received: from OSZPR01MB7772.jpnprd01.prod.outlook.com ([fe80::df28:316e:ef65:39a9]) by OSZPR01MB7772.jpnprd01.prod.outlook.com ([fe80::df28:316e:ef65:39a9%6]) with mapi id 15.20.8114.028; Tue, 5 Nov 2024 05:43:30 +0000 From: "Seiichi Ikarashi (Fujitsu)" To: "'steved@redhat.com'" , 'Scott Mayhew' CC: "'sorenson@redhat.com'" , "'linux-nfs@vger.kernel.org'" Subject: [PATCH RESEND] mount.nfs: retry NFSv3 mount after NFSv4 failure in auto negotiation Thread-Topic: [PATCH RESEND] mount.nfs: retry NFSv3 mount after NFSv4 failure in auto negotiation Thread-Index: AdsvQ9WEZO1QrU5sRpi/OoEADq2E9w== Date: Tue, 5 Nov 2024 05:43:30 +0000 Message-ID: Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ActionId=e86cf436-a95f-4d16-a2bb-123b39e7f80d;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ContentBits=0;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Enabled=true;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Method=Standard;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Name=FUJITSU-RESTRICTED?;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SetDate=2024-11-05T05:29:16Z;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SiteId=a19f121d-81e1-4858-a9d8-736e267fd4c7; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: OSZPR01MB7772:EE_|OSZPR01MB8579:EE_ x-ms-office365-filtering-correlation-id: 157c5f1e-eb38-44ae-4ddf-08dcfd5cc7ab x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018|1580799027; x-microsoft-antispam-message-info: =?iso-2022-jp?b?dlp0S3NNRlFwZXdNU1NHQzlB?= =?iso-2022-jp?b?Uy9YdVAxR0JTUldxQXpMVlA5d3JkeGlXcERMb1gvZFJRUmllek1XeUdV?= =?iso-2022-jp?b?MDNnaUZ1UjJnWkdPQzJhd2ZtSk4xTHZRVGxMcWo0YmVQYXhyaDhDanVT?= =?iso-2022-jp?b?Nko3M3VkYU1wYVd1Y2U5emtFaEplY0ZnaTdqNmJLVTFPeTRhYkpobTZY?= =?iso-2022-jp?b?bW1mUVZwWFhOSTdOMGVQaWFrbnNSWnJhZy82TjROMkFXeWhQdFYreEl4?= =?iso-2022-jp?b?aUNBd2NkTTdTK3VqV3luVllzMzhOL2NUczZ2VGxZaTA3V3Q3ckcva004?= =?iso-2022-jp?b?R3lINmV2TEZpZDhNVzFydDBEM21lMWI5blBCNjJHU2h6YVVtUHczVkxP?= =?iso-2022-jp?b?cE5MYTY4bDhQYjVMK0dQTWNHYWpQUis5bCtJUDNQUXZHWGgzVmJpSUlz?= =?iso-2022-jp?b?RW0wbzVpZDFTWnNObW01Z01KZEpaMGhCelNJNnNNYVcyQ3lsY0xoMWFR?= =?iso-2022-jp?b?V3hNUjVGOG9MY2F4SVJ5OU1uS2xrMy9TZTlldklOdjAyV1lsQTYvOTN5?= =?iso-2022-jp?b?bnY4ZjhDVVJQeXo3dTEyVXF4eWYwY1dMSlN4MndmUEJYY1JxOVRDYU9q?= =?iso-2022-jp?b?dG1sQ3YxS1BxUEdnZnYxWXRwdnJKbmZJeEIyUVdNdUxqOHZKZmxtODQ2?= =?iso-2022-jp?b?MVFnWXpUejB1a0d4UVRpK1B4ZnlXbWlvanFtTEQrSVRjdjJIVC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1BsTDlxT1d2Ti8wUEtPZEM3U0RC?= =?iso-2022-jp?b?Z2E2c2VhcjVqbmJOWGJYUXVMOWQ4UWtNNnJFVGN5V3QrSFJOUjhJNnRZ?= =?iso-2022-jp?b?N0lXU0lGR0ZQSFpFQ0ZMam5Gb0VFc1hxdEE0dm9XclVZVGNOSWdCaXpZ?= =?iso-2022-jp?b?WDErMnhSbWsxanp4V0FXM2hjOGNNMUpPMXFBN05DWkZZV000VEp6VlRY?= =?iso-2022-jp?b?ZmVZU1piOCsyS3BPMmFwZnhJakdkZjdvTkFaejhVNlhDRWROS1dSTmRr?= =?iso-2022-jp?b?SlJOeExzZDU2MG5WL251SzdNTkdGdzIrT1BMV1piZVJuWGdzc2xCWEM3?= =?iso-2022-jp?b?UlIwb0p1aSt6RHF1T29LTWFYQXJTVm43aTExRUhSblNjTFRNNUF1YU9W?= =?iso-2022-jp?b?NDJsaHVSaS9tZ0FxMVptZStVL2Myd0kvREE9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:ja;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OSZPR01MB7772.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018)(1580799027);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?b?MnFFOTNTRkdPU1dma0Fo?= =?iso-2022-jp?b?SUJQNE9vdWc1NWZjWXN5TEl0VFY3RkkyUDhwWlgwWEhIbWdWd0o3bVVy?= =?iso-2022-jp?b?RmpKUm1nYmVublBoWnJRMDhkc29oUzlrRGwySG81NkgrTVNWbkQvcnFn?= =?iso-2022-jp?b?VTloUWdPMUVhS1RETk96ek5hK1NDdnlsR3YzU2l4T29HN2Q5b256Q2w5?= =?iso-2022-jp?b?eUFDWTRJbmN0OFR3eHpXb3FBK01vWHlyV2N6U3JVMkVPNTArKzdqb09t?= =?iso-2022-jp?b?dUEydFlxK0dkUW9BRk1zc3BVOXZYMXJiOEdUOCtwOUdiaWZkdnc3TElB?= =?iso-2022-jp?b?Sng4L0RXNmdlZ25qUjBhL1BuYlREOG51Ync5S2IrYUExWGkrbW5LT2FC?= =?iso-2022-jp?b?QVR6NVpMbjZ4MVhGWldLV0JMZklEVmlLcXpzQi9UdE8xK1BjYWh6RnBr?= =?iso-2022-jp?b?OUN6TklyRTY5NjlxRVp1WithMXlMblBULzFpdTdkN080dSs0TVlxblNZ?= =?iso-2022-jp?b?Ykw3N2FQb0dsYmFrUkYwcVI3SXdnTnJGejI0NjNzSHJIVnU1YWxUTFNH?= =?iso-2022-jp?b?STR0R3pEYmhGaU04NHl2TG9KRjRBb2xKRVViRVFhdUpoS2ovYkI2em5X?= =?iso-2022-jp?b?RkEvL0hXNktDSnVyaVhwZys1RzlXTUxkOWs2eDdDRi80clAvbFVvV09P?= =?iso-2022-jp?b?TWV1VzZTSU50STBxbFdTaTNSaDlRTllTZDhXMDRTaHBEY3BiVzk2azdY?= =?iso-2022-jp?b?SldyY05GT3lwY092dkZuU1ozNUdRQ2tmNmNGS0xGR3pFMmNFVmZ5ZndF?= =?iso-2022-jp?b?NTVDNHhEZmNUNS84L0I0UzVMS0VESEJuTVJYT2xjZXAvbWIvRUlXMlhL?= =?iso-2022-jp?b?WHVILysvVGtjWEg1RjRNdzkyZVdjejRqN29vck5DWVNCMUpzN05XLzND?= =?iso-2022-jp?b?MjM4dkZtNElvRFlOY1pNNEVQam45Zi9wcDc0M3pvellLRTJselE2eFF4?= =?iso-2022-jp?b?M0E0T0g2bU40UERCNXVua3VzajkyTzh1N0RXbFRmSDQzTnY5UFNSbWpr?= =?iso-2022-jp?b?QlR0N0t4b0ZzS0JFZTNIb0hTVkFMaVpNRHkzTUxYdmo5TlZydERCemZx?= =?iso-2022-jp?b?a1NGTVQ4QmtHK3kwM01MZElEdU5sdS93U29wMGt1VFJDK1dmSUJhdDht?= =?iso-2022-jp?b?SEt2QXRmUE83MG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so-2022-jp?b?RVZ6WVlwYmRsQXVHMnpwSU84alE2cEprY25CME95MzljV09EcC9GWEp5?= =?iso-2022-jp?b?UUVLNndodHBKY3dDa041K2VHcVB2QzltY1dKcmJkSGxaT3NNcGNLRGdC?= =?iso-2022-jp?b?Y2dhVHNaeWZGQjFIY2J2ZzV2NFdVY0ZERWRmNnNKSWpUTHpqQk9jc0pi?= =?iso-2022-jp?b?VGRzSVVYVm9nZGZWY0RNcllJa3Zta2hFSU5TSjNhZTVnN3NUc0hvYVBJ?= =?iso-2022-jp?b?RGpVcUNwbGFQZGc9PQ==?= Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: T+5LBV1stZmjDSAxTmto6Dib8M4dIK61iV52r9QQTZo91rjthL7KEsJVrY00qoBpXLMXOrsoHdaj4vkkGlXt6mc+M4K1q1BNfz9GCQkYU0S/7OzsosPvEMyLp8WJxcroNFeypx6RHqJXbDyVDOyV7pN1S1mbPn9NHWtXSO4h8PfEREA6b1B1k6m29kfNngckKXysqEGlzhCX3Hfj7+c3c64XDUe+N5A4ggehsnQMkTgc3REVx9TFVDFzeyyhxzphPYZXhImNEvQdfyTwHf6AoVtEq0wkmk87MeYkhAcMSk7Nai9bzaz/9HsKsBjTvyfK+JSqxBESOxMsk9y8YMQ795laOXt3OiJmi/gtitoBu4L4CbpftsMoUjR/pBhl563niyMfQhTIU4ZC2DclEsuoZ0NiqKDjvnXJ5Ppo3zjYGZQFaGpelwNdrgbc5dNBJeaHcSepYLciE0QdcDl+nytD7HDaWuk8J2Qlq5d+GzAVmrnUkFCOA5u/PP6tqoRY4bE6JDByqRlAYR/2iFdTEdKLGA3lfYeFHhtsd7y8Vl8sutCeUt9h7EIj6pgVvhw9Wv8e6ntjarMWxULe4a3BIa7W5ZfCX9QTjR+p00eCEyoRHgSdnC4WMoEoi1aiX4hFzjp0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OSZPR01MB7772.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 157c5f1e-eb38-44ae-4ddf-08dcfd5cc7ab X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2024 05:43:30.8395 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: V3YteKTdaRJv2/OveA+LoSeEV2xolCf6BYyEE2dQy5T6gAQ+h+Y7Pa3N4AzAOhdZHEStdVDxxEbb7HSXI+YSw/zXTR4H0FeqcxXW5m3OoEc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB8579 The problem happens when a v3 mount fails with ETIMEDOUT after the v4 mount failed with EPROTONOSUPPORT, in mount auto negotiation. It immediately breaks from the "for" loop in nfsmount_fg() or nfsmount_child() due to EPROTONOSUPPORT, never doing the expected retries until timeout. [auto negotiation case]: It breaks immediately. # time mount.nfs -v 192.168.200.59:/exp /mnt mount.nfs: timeout set for Wed Oct 23 14:21:58 2024 mount.nfs: trying text-based options 'vers=4.2,addr=192.168.200.59,clientaddr=192.168.200.187' mount.nfs: mount(2): Protocol not supported mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.200.59,clientaddr=192.168.200.187' mount.nfs: mount(2): Protocol not supported mount.nfs: trying text-based options 'vers=4,addr=192.168.200.59,clientaddr=192.168.200.187' mount.nfs: mount(2): Protocol not supported mount.nfs: trying text-based options 'addr=192.168.200.59' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 192.168.200.59 prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=17 mount.nfs: trying 192.168.200.59 prog 100005 vers 3 prot UDP port 20048 mount.nfs: portmap query retrying: RPC: Timed out mount.nfs: prog 100005, trying vers=3, prot=6 mount.nfs: trying 192.168.200.59 prog 100005 vers 3 prot TCP port 20048 mount.nfs: portmap query failed: RPC: Timed out mount.nfs: Protocol not supported for 192.168.200.59:/exp on /mnt real 0m13.027s user 0m0.002s sys 0m0.005s # [nfsvers=3 case]: It retries until exceeding timeout as expected. # time mount.nfs -v -o nfsvers=3 192.168.200.59:/exp /mnt mount.nfs: timeout set for Wed Oct 23 14:22:23 2024 mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.200.59' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 192.168.200.59 prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=17 mount.nfs: trying 192.168.200.59 prog 100005 vers 3 prot UDP port 20048 mount.nfs: portmap query retrying: RPC: Timed out mount.nfs: prog 100005, trying vers=3, prot=6 mount.nfs: trying 192.168.200.59 prog 100005 vers 3 prot TCP port 20048 mount.nfs: portmap query failed: RPC: Timed out (snip) mount.nfs: prog 100005, trying vers=3, prot=6 mount.nfs: trying 192.168.200.59 prog 100005 vers 3 prot TCP port 20048 mount.nfs: portmap query failed: RPC: Timed out mount.nfs: Connection timed out for 192.168.200.59:/exp on /mnt real 2m10.152s user 0m0.007s sys 0m0.015s # Let's retry in auto negotiation case, too. Signed-off-by: Seiichi Ikarashi Reviewed-by: Scott Mayhew --- utils/mount/stropts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index a92c420..103c41f 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -981,7 +981,7 @@ fall_back: if ((result = nfs_try_mount_v3v2(mi, FALSE))) return result; - if (errno != EBUSY && errno != EACCES) + if (errno != EBUSY && errno != EACCES && errno != ETIMEDOUT) errno = olderrno; return result;