From nobody@FreeBSD.org  Wed Mar  3 13:01:27 2010
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 36DEE1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Mar 2010 13:01:27 +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 260398FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Mar 2010 13:01:27 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o23D1Qs9009614
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 3 Mar 2010 13:01:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o23D1QDK009613;
	Wed, 3 Mar 2010 13:01:26 GMT
	(envelope-from nobody)
Message-Id: <201003031301.o23D1QDK009613@www.freebsd.org>
Date: Wed, 3 Mar 2010 13:01:26 GMT
From: jhell <jhell@DataIX.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ZFS] sharenfs fsunshare() & fsshare_main() non functiional.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144447
>Category:       kern
>Synopsis:       [zfs] sharenfs fsunshare() & fsshare_main() non functional
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-fs
>State:          patched
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 03 13:10:04 UTC 2010
>Closed-Date:    
>Last-Modified:  Tue Aug 24 09:10:36 UTC 2010
>Originator:     jhell
>Release:        >= stable/7 r204486 Sun Feb 28 19:42:46 EST 2010
>Organization:
>Environment:
FreeBSD 7.3-STABLE #0 r204486 Sun Feb 28 19:42:46 EST 2010
BRANCH_OVERRIDE=STABLE
>Description:
After exporting some filesystems from zfs via sharenfs I decided to turn
the shares back off after I was done with them on another machine. To my
surprise the datasets that I had shared previously were still shared.

Process:

# This command adds the share through nfs in /etc/zfs/exports
zfs set sharenfs='-maproot=0 disbatch' exports/svn

bla bla bla after using them for a little while:

# This command should turn off the nfs share and remove the line from
# /etc/zfs/exports and signal mountd or whatever.
zfs set sharenfs=off exports/svn

Lo and behold this line is never removed the share and continues even
through a reboot all while sharenfs=off on the dataset. No no other
datasets are shared at this time.

The line in /etc/zfs/exports changes just fine when changing the options
via "zfs set sharenfs".

I also removed /etc/zfs/exports and repeated the process. It still
continued. Also have destroyed datasets and the nfs share still exists.

Can someone take a look at this ?.
>How-To-Repeat:
# This command adds the nfs share in /etc/zfs/exports
zfs set sharenfs='-maproot=0 disbatch' exports/svn

# This command should turn off the nfs share and remove the line from
# /etc/zfs/exports and signal mountd or whatever.
zfs set sharenfs=off exports/svn

>Fix:
No known fix available at the moment.

It does not look like fsunshare() is being called from the little time
that I actually had to debug this problem before the report.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Mar 3 13:20:45 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144447 
State-Changed-From-To: open->feedback 
State-Changed-By: pjd 
State-Changed-When: ptk 19 mar 2010 22:48:50 UTC 
State-Changed-Why:  
I believe this is fixed in FreeBSD 8.x. Could you confirm this? 


Responsible-Changed-From-To: freebsd-fs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: ptk 19 mar 2010 22:48:50 UTC 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144447 

From: jhell <jhell@DataIX.net>
To: bug-followup@FreeBSD.org
Cc: ticso@cicely.de
Subject: Re: kern/144447: [zfs] sharenfs fsunshare() & fsshare_main() non
 functiional.
Date: Sat, 20 Mar 2010 23:37:43 -0400

 I can not confirm this is fixed on 8.X.
 
 Maybe ticso@CC might be able to? or another kind soul running 8.X
 
 Thanks for looking this over.
 
 As I notice 7.3-RELEASE is officially in UPDATING for 20100323 maybe this 
 could make it in as a errata?.
 
 -- 
 
   jhell
 

From: jhell <jhell@dataix.net>
To: bug-followup@FreeBSD.org, jhell@DataIX.net
Cc:  
Subject: Re: kern/144447: [zfs] sharenfs fsunshare() &amp; fsshare_main() non 
	functiional.
Date: Mon, 10 May 2010 10:59:15 -0400

 Just a reminder followup to see if anything has changed in the
 situation of this PR.
 
 ???
 
 -- 
 
  jhell
State-Changed-From-To: feedback->patched 
State-Changed-By: pjd 
State-Changed-When: pon 10 maj 2010 16:39:48 UTC 
State-Changed-Why:  
I believe problem is fixed in HEAD and stable/8, but the submitter is 
looking for someone who can merge it to stable/7. 


Responsible-Changed-From-To: pjd->freebsd-fs 
Responsible-Changed-By: pjd 
Responsible-Changed-When: pon 10 maj 2010 16:39:48 UTC 
Responsible-Changed-Why:  
I believe problem is fixed in HEAD and stable/8, but the submitter is 
looking for someone who can merge it to stable/7. 

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