From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 23 04:10:20 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4784316A4CF for ; Sun, 23 Jan 2005 04:10:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00D9A43D31 for ; Sun, 23 Jan 2005 04:10:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0N4AJTL038905 for ; Sun, 23 Jan 2005 04:10:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0N4AJf9038904; Sun, 23 Jan 2005 04:10:19 GMT (envelope-from gnats) Resent-Date: Sun, 23 Jan 2005 04:10:19 GMT Resent-Message-Id: <200501230410.j0N4AJf9038904@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Buelow Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9B6816A4CF for ; Sun, 23 Jan 2005 04:06:55 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB51A43D1D for ; Sun, 23 Jan 2005 04:06:55 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0N46tDS051023 for ; Sun, 23 Jan 2005 04:06:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0N46tje051010; Sun, 23 Jan 2005 04:06:55 GMT (envelope-from nobody) Message-Id: <200501230406.j0N46tje051010@www.freebsd.org> Date: Sun, 23 Jan 2005 04:06:55 GMT From: Matthias Buelow To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/76590: adding -mapall in nfs exports requires reboot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 04:10:20 -0000 >Number: 76590 >Category: bin >Synopsis: adding -mapall in nfs exports requires reboot >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 23 04:10:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Matthias Buelow >Release: 5.3-STABLE >Organization: >Environment: FreeBSD xxx 5.3-STABLE FreeBSD 5.3-STABLE #6: Fri Jan 21 10:47:22 CET 2005 xxx:/usr/obj/usr/src/sys/xxx i386 >Description: Adding a -mapall option to an entry in /etc/exports doesn't seem to have any effect, even when restarting the nfs server and mountds. Only after rebooting the server the change comes into effect. It is nonsensical that a change of nfsd export attributes requires a system reboot, instead of just an nfs server restart. >How-To-Repeat: I have the following line in /etc/exports: /usr -mapall=mkb:mkb -network 192.168.0.0 -mask 255.255.255.0 Before that, I already exported it without the mapall directive. Mounting on clients worked in both cases but after adding the mapall directive, no remapping was done. I also tried with numerical ids, without groups, and various permutations thereof. I restarted nfsd with /etc/rc.d/nfsd restart, /etc/rc.d/mountd restart, and even stopped and started the servers manually. The filesystem was unmounted on the client during restarts. I noticed that nfsiod wasn't affected by these restarts. >Fix: >Release-Note: >Audit-Trail: >Unformatted: