From owner-freebsd-fs@FreeBSD.ORG Tue Mar 2 00:15:33 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74ECB106566B for ; Tue, 2 Mar 2010 00:15:33 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id D57968FC12 for ; Tue, 2 Mar 2010 00:15:32 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o220F2u0064303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 2 Mar 2010 01:15:02 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o220ExBp020900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Mar 2010 01:14:59 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o220ExUF072719; Tue, 2 Mar 2010 01:14:59 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o220Exrq072718; Tue, 2 Mar 2010 01:14:59 +0100 (CET) (envelope-from ticso) Date: Tue, 2 Mar 2010 01:14:59 +0100 From: Bernd Walter To: jhell Message-ID: <20100302001459.GT58319@cicely7.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: FreeBSD Filesystems Subject: Re: [ZFS] sharenfs stable/7 # !!! DO NOT EDIT THIS FILE MANUALLY !!! X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 00:15:33 -0000 On Mon, Mar 01, 2010 at 06:29:44PM -0500, jhell wrote: > > Hi FS, > > 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. > > FreeBSD 7.3-STABLE #0 r204486 Sun Feb 28 19:42:46 EST 2010 > > 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. > > Should a PR be filed ?, Can someone take a look at this ?. This reminds me that my mountd complains about a zfs-export line. The given filesystem doesn't exist anymore. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.