From gnats@FreeBSD.org  Tue Feb  5 11:38:48 2008
Return-Path: <gnats@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E72A416A417
	for <freebsd-gnats-submit@hub.freebsd.org>; Tue,  5 Feb 2008 11:38:48 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id D7AD613C478
	for <freebsd-gnats-submit@hub.freebsd.org>; Tue,  5 Feb 2008 11:38:48 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m15Bcmkw040769
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 5 Feb 2008 11:38:48 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m15BcmNT040768;
	Tue, 5 Feb 2008 11:38:48 GMT
	(envelope-from gnats)
Message-Id: <200802051138.m15BcmNT040768@freefall.freebsd.org>
Date: Tue, 5 Feb 2008 11:38:48 GMT
From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
Reply-To: Victor Sudakov <sudakov@sibptus.tomsk.ru>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: "zfs share -a" does not send SIGHUP to mountd
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         120289
>Category:       bin
>Synopsis:       "zfs share -a" does not send SIGHUP to mountd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 05 11:40:01 UTC 2008
>Closed-Date:    Tue Feb 05 11:43:20 UTC 2008
>Last-Modified:  Tue Feb 05 11:43:20 UTC 2008
>Originator:     Victor Sudakov
>Release:        FreeBSD 7.0-BETA4 i386
>Organization:
AO "Svyaztransneft", SibPTUS
>Environment:
System: 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 new 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:43:19 UTC 2008 
State-Changed-Why:  
duplicate of 120288 

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