From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 3 13:10:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB699106566C for ; Wed, 3 Mar 2010 13:10:05 +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 7F4D18FC19 for ; Wed, 3 Mar 2010 13:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o23DA5ls055982 for ; Wed, 3 Mar 2010 13:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o23DA5bN055981; Wed, 3 Mar 2010 13:10:05 GMT (envelope-from gnats) Resent-Date: Wed, 3 Mar 2010 13:10:05 GMT Resent-Message-Id: <201003031310.o23DA5bN055981@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, jhell Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36DEE1065670 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/144447: [ZFS] sharenfs fsunshare() & fsshare_main() non functiional. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 13:10:05 -0000 >Number: 144447 >Category: kern >Synopsis: [ZFS] sharenfs fsunshare() & fsshare_main() non functiional. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >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: >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 Low 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: >Unformatted: