From owner-freebsd-stable@freebsd.org Mon May 8 00:50:56 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AFD2D5F6B8; Mon, 8 May 2017 00:50:56 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670089.outbound.protection.outlook.com [40.107.67.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21B201474; Mon, 8 May 2017 00:50:55 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM (10.165.218.133) by YTXPR01MB0190.CANPRD01.PROD.OUTLOOK.COM (10.165.218.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Mon, 8 May 2017 00:50:53 +0000 Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) by YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) with mapi id 15.01.1075.019; Mon, 8 May 2017 00:50:53 +0000 From: Rick Macklem To: Claude Buisson , FreeBSD Current CC: FreeBSD-STABLE Mailing List Subject: Re: Recent FreeBSD, NFSv4 and /var/db/mounttab Thread-Topic: Recent FreeBSD, NFSv4 and /var/db/mounttab Thread-Index: AQHSfJfpteLPu545NESwV/c/JyXxzaFUr0tBgJUhHQyAAC5EAIAAMT4v Date: Mon, 8 May 2017 00:50:53 +0000 Message-ID: References: <20c2baca-ba91-19b4-db95-5352b56019c1@orange.fr> , <17039eeb-fd0d-a0f7-19bf-48c75013f222@orange.fr> In-Reply-To: <17039eeb-fd0d-a0f7-19bf-48c75013f222@orange.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=uoguelph.ca; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; YTXPR01MB0190; 7:lETvaxCVnBGsonJ4Ezxefxu2vzydJXXT3Rctiop5FGvLHj1eSBhWAIyvDMUqVKgBGchFekq3P39KiU/JNsowuoR4/P4APgw4lgHtSJuBHygmGpGcFg/5oh37RT330SO2GqJ1dNcRc9Z1/0b2I80LYWo1dOQFUw5iC3MbfyYA9pDN2dWwwrkKNKbnm2GdtoQqh+K4Vp2yK7oguvkhVRlUWrOT92pfLuKIx1dDm6Yx2wb36+jMlviZ9Fzsss4iv0SIbmK+F2o37MzDLYWhN853Ki4u6JHyLrKkJgHEmRUQspTEA9TH7W7nB+Q8D3PkWLz/c7i4mYzcGXN0Y9eci44zrA== x-ms-office365-filtering-correlation-id: ef7e6164-ff7e-44ad-ffab-08d495ac47d3 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:YTXPR01MB0190; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(211171220733660); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(6072148); SRVR:YTXPR01MB0190; BCL:0; PCL:0; RULEID:; SRVR:YTXPR01MB0190; x-forefront-prvs: 0301360BF5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39410400002)(39400400002)(24454002)(53936002)(2950100002)(3280700002)(305945005)(5660300001)(93886004)(25786009)(7696004)(2906002)(9686003)(55016002)(122556002)(478600001)(3660700001)(74316002)(38730400002)(33656002)(74482002)(54356999)(6506006)(50986999)(4326008)(76176999)(6436002)(86362001)(229853002)(8936002)(8676002)(2900100001)(77096006)(81166006)(102836003)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:YTXPR01MB0190; H:YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2017 00:50:53.7134 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR01MB0190 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 May 2017 00:50:56 -0000 Claude Buisson wrote: >On 05/07/2017 21:09, Rick Macklem wrote: >> Claude Buisson wrote: >>> Hi, >>> >>> Last month, I started switching all my systems (stable/9, stable/10, >>> stable/11 and current) to NFSv4, and I found that: >>> >>> on current (svn 312652) an entry is added to /var/db/mounttab by >>> mount_nfs(8), but not suppressed by umount(8). It can be suppressed by >>> rpc.umntall(8). >>> >>> The same anomaly appears on stable/11 after upgrading to svn 312950. >>> >>> It is relatively easy to trace this anomaly to r308871 on current and >>> its MFHs (r309517 for stable/11). >>> >>> Patching sbin/umount/umount.c to restore the RPC call for NFSv4 makes >>> umount(8) suppress the mounttab entry as before. >>> >>> I do not know what is the proper solution, as suppressing the >>> modification of mounttab by mount_nfs(8) for NFSv4 could be an (more >>> complicated) alternative ! I chose this alternative, since NFSv4 has nothing to do with the Mount prot= ocol. A one line patch to do this is now committed to head as r317931. Thanks for reporting this, rick [stuff snipped]=