From nobody@FreeBSD.org  Sun Jan 23 04:06:55 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E9B6816A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <mkb@incubus.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: adding -mapall in nfs exports requires reboot
X-Send-Pr-Version: www-2.3

>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:  Mon Feb 14 23:20:12 GMT 2005
>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:

From: Stephane Thiell <mbuna@bugged.org>
To: mkb@incubus.de, freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/76590: adding -mapall in nfs exports requires reboot
Date: Tue, 15 Feb 2005 00:12:28 +0100

 Hi,
 
 I noticed exactly the same problem. But I have a simple workaround.
 
 After modifying /etc/exports, just do the old way:
 
 kill -s HUP `cat /var/run/mountd.pid`
 
 Perhaps mountd's restart script is broken?
 
 Hope that helps,
 Stephane
 
>Unformatted:
