From owner-freebsd-stable@freebsd.org Wed Feb 1 14:31:30 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 6F5CCCCBD42 for ; Wed, 1 Feb 2017 14:31:30 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp07.smtpout.orange.fr [80.12.242.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0B6053D3 for ; Wed, 1 Feb 2017 14:31:29 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from localhost ([83.193.128.235]) by mwinf5d42 with ME id fSPq1u00A54s3Hf03SPqKe; Wed, 01 Feb 2017 15:23:51 +0100 X-ME-Helo: localhost X-ME-Auth: Y2xidWlzc29uQHdhbmFkb28uZnI= X-ME-Date: Wed, 01 Feb 2017 15:23:51 +0100 X-ME-IP: 83.193.128.235 To: FreeBSD Current Cc: FreeBSD-STABLE Mailing List From: Claude Buisson Subject: Recent FreeBSD, NFSv4 and /var/db/mounttab Message-ID: <20c2baca-ba91-19b4-db95-5352b56019c1@orange.fr> Date: Wed, 1 Feb 2017 15:23:49 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 01 Feb 2017 14:31:30 -0000 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 ! Thanks for your attention, Claude Buisson