From dvc@shuggoth.gol.ad.jp  Thu May 31 05:44:25 2007
Return-Path: <dvc@shuggoth.gol.ad.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id F04F716A400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 May 2007 05:44:24 +0000 (UTC)
	(envelope-from dvc@shuggoth.gol.ad.jp)
Received: from shuggoth.gol.ad.jp (shuggoth.gol.ad.jp [203.216.0.209])
	by mx1.freebsd.org (Postfix) with ESMTP id A688C13C455
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 May 2007 05:44:24 +0000 (UTC)
	(envelope-from dvc@shuggoth.gol.ad.jp)
Received: from shuggoth.gol.ad.jp (localhost [127.0.0.1])
	by shuggoth.gol.ad.jp (8.14.1/8.14.1) with ESMTP id l4V2EJe3029904
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 May 2007 11:14:19 +0900 (JST)
	(envelope-from dvc@shuggoth.gol.ad.jp)
Received: (from root@localhost)
	by shuggoth.gol.ad.jp (8.14.1/8.14.1/Submit) id l4V2CR2u029873;
	Thu, 31 May 2007 11:12:27 +0900 (JST)
	(envelope-from dvc)
Message-Id: <200705310212.l4V2CR2u029873@shuggoth.gol.ad.jp>
Date: Thu, 31 May 2007 11:12:27 +0900 (JST)
From: David Van Cleef <dvc@gol.com>
Reply-To: David Van Cleef <dvc@gol.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Setting ZFS nfsshare property does not cause inheritance for current session
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         113180
>Category:       kern
>Synopsis:       [zfs] Setting ZFS nfsshare property does not cause inheritance for current session
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 31 05:50:03 GMT 2007
>Closed-Date:    Mon Sep 07 20:17:59 UTC 2009
>Last-Modified:  Mon Sep 07 20:17:59 UTC 2009
>Originator:     David Van Cleef
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
Fusion Network Service Corp
>Environment:
System: FreeBSD shuggoth.gol.ad.jp 7.0-CURRENT FreeBSD 7.0-CURRENT #3: Fri May 25 10:30:11 JST 2007 dvc@shuggoth.gol.ad.jp:/usr/obj/usr/src/sys/NODEBUG amd64


	
>Description:
	
If a heirarchy of nfsshared ZFS filesystems exists, and a non-leaf filesystem
has its nfsshare property changed, the children have their zfs property properly
changed, however the current nfs export-state is not changed for the children.
>How-To-Repeat:
	
# zfs create -o sharenfs="node1" tank/exports/top
# zfs create tank/exports/top/bottom
# showmount -e localhost
/tank/exports/top/bottom	node1
/tank/exports/top		node1
# zfs set sharenfs="node2" tank/exports/top
# showmount -e localhost
/tank/exports/top/bottom	node1
/tank/exports/top		node2
# zfs get sharenfs tank/exports/top
NAME           PROPERTY  VALUE                        SOURCE
tank/exports/top  sharenfs  node2  local
# zfs get sharenfs tank/exports/top/bottom
NAME                PROPERTY  VALUE                        SOURCE
tank/exports/top/bottom  sharenfs  node2  inherited from tank/exports/top

>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->pjd 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu May 31 05:56:49 UTC 2007 
Responsible-Changed-Why:  
Reassign to Pawel since this appears to be affecting ZFS. 
Pawel can you have a look at this please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113180 
Responsible-Changed-From-To: pjd->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 28 22:19:56 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=113180 
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: pon 7 wrz 2009 20:16:16 UTC 
State-Changed-Why:  
The problem you described was related to buggy detection of shared file 
systems which I just fixed. With this fix I'm not able to reproduce your 
problem, sharenfs property on parent changes children too as confirmed 
with 'showmount -e'. Thanks for the report! 


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

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