From owner-freebsd-fs@FreeBSD.ORG Tue Mar 2 13:09:37 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 89C72106566C for ; Tue, 2 Mar 2010 13:09:37 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qy0-f194.google.com (mail-qy0-f194.google.com [209.85.221.194]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5468FC15 for ; Tue, 2 Mar 2010 13:09:36 +0000 (UTC) Received: by qyk32 with SMTP id 32so91497qyk.28 for ; Tue, 02 Mar 2010 05:09:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=tg3T74lAaHEZysKVkdG/lxDVHtpo41ooAwha74WG8gw=; b=rEE9KT4FBLzYcOUo+HsuHXaf3TK2U1lxEfFIXhfMhslTSyH1XWqt/yH5+YkgxgymDu 3FIaFA+agMeE6I0leBDCxQtNQZ1vYBwA8YkHMnZ8YTINBdegCSguCxUfgx297nuE0LIK atmwKj6aWyR9eW/c38p9ZZbwuH7XJwqTDPikY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=tjLOIpOd0rKUOdzF4imGoum/HWnwL9q9RIN0VrnMgCCC69C2NZxAvTLHm1mMfFt24j Ght/5S8HgJxVn+X06bHMJNnsw0FT9ktLliCFJzfr+Onm2ilDTx/kzDH/vi0xRPQ6w95e DNVOxqURYkmdxagX6jOwuGaUBUOjvxeFx+fNA= Received: by 10.224.27.34 with SMTP id g34mr3264111qac.19.1267535370857; Tue, 02 Mar 2010 05:09:30 -0800 (PST) Received: from centel.dataix.local (ppp-22.138.dialinfree.com [209.172.22.138]) by mx.google.com with ESMTPS id 6sm8615273qwd.24.2010.03.02.05.09.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 05:09:29 -0800 (PST) Sender: "J. Hellenthal" Date: Tue, 2 Mar 2010 08:08:31 -0500 From: jhell To: ticso@cicely.de In-Reply-To: <20100302001459.GT58319@cicely7.cicely.de> Message-ID: References: <20100302001459.GT58319@cicely7.cicely.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 13:09:37 -0000 On Mon, 1 Mar 2010 19:14, ticso@ wrote: > 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. > > Yeah this one stumped me right away when I went back to double check whether the mount was still available and found out it still existed in the zfs/exports file. Somewhere between the upgrade to v13 from v6 this was broken because I very clearly remember this functionality working. I haven't checked yet whether setting sharenfs on multiple fs's and then manually editing the exports file would do yet but I suppose its not going to be good. Hope this is fixed SOON. -- jhell