From nobody@FreeBSD.org  Tue Feb  5 11:14:12 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AA17116A417
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Feb 2008 11:14:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9B90E13C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  5 Feb 2008 11:14:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m15BCBF4030463
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 5 Feb 2008 11:12:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m15BCBT2030462;
	Tue, 5 Feb 2008 11:12:11 GMT
	(envelope-from nobody)
Message-Id: <200802051112.m15BCBT2030462@www.freebsd.org>
Date: Tue, 5 Feb 2008 11:12:11 GMT
From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "zfs share -a" does not send SIGHUP to mountd
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120288
>Category:       bin
>Synopsis:       zfs(8): "zfs share -a" does not send SIGHUP to mountd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 05 11:20:00 UTC 2008
>Closed-Date:    Mon Sep 07 20:12:54 UTC 2009
>Last-Modified:  Mon Sep 07 20:12:54 UTC 2009
>Originator:     Victor Sudakov
>Release:        7.0-BETA4
>Organization:
AO "Svyaztransneft", SibPTUS
>Environment:
FreeBSD vbsd7.sibptus.tomsk.ru 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Sun Dec 2
 19:19:04 UTC 2007 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The command "zfs share -a" does not make mountd reread the configuration
file. One must send SIGHUP manually so that mountd notices changes in
/etc/zfs/exports
>How-To-Repeat:
1. Set the "sharenfs=on" property on some filesystem within zfs.
2. Say "zfs unshare -a"
3. Say "zfs share -a"

You won't be able to see the shares (e.g. in "showmount -e") unless you
send SIGHUP to mountd manually.
>Fix:
A workaround: you can use "killall -HUP mountd" after every "zfs share
-a" command.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Feb 5 11:45:18 UTC 2008 
State-Changed-Why:  
Imo this is intended behaviour, no where in the manual is stated that 
this should be possible etc. Also when you add new shares in NFS you 
should also restart mountd/sighup it, so that the new shares become 
visible, why should this be handled differently? Thanks for using 
FreeBSD though! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120288 
State-Changed-From-To: closed->open 
State-Changed-By: pjd 
State-Changed-When: wto 5 lut 15:23:51 2008 UTC 
State-Changed-Why:  
ZFS should send SIGHUP to mountd. 


Responsible-Changed-From-To: freebsd-bugs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: wto 5 lut 15:23:51 2008 UTC 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120288 
Responsible-Changed-From-To: pjd->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 28 22:22:33 UTC 2009 
Responsible-Changed-Why:  
With pjd's permission, reassing ZFS-related PRs to freebsd-fs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120288 
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: pon 7 wrz 2009 20:10:46 UTC 
State-Changed-Why:  
I think the problem you were seeing was related to bug in pidfile(3), 
which was fixed some time ago. There was also another bug in detecting 
if file system is shared which I just fixed. Now the following commands 
should properly remove file systems from the 'showmount -e' output: 

# zfs unshare -a 
# zfs destroy foo/bar 
# zfs rename foo/bar foo/baz 

Thanks for the report! 


Responsible-Changed-From-To: freebsd-fs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: pon 7 wrz 2009 20:10:46 UTC 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120288 
>Unformatted:
