From owner-freebsd-current@FreeBSD.ORG Wed Mar 5 03:05:21 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCC6E1065676 for ; Wed, 5 Mar 2008 03:05:21 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 55C0B8FC15 for ; Wed, 5 Mar 2008 03:05:20 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1049816fgg.35 for ; Tue, 04 Mar 2008 19:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7l1LdRcapbIfY3ubNEiFk2YonybPdEQ8UbA8X/YIfSs=; b=Wqd6xaO7QezDEbS1kL1U3EMxTwMKdR6U5PTzFnQh5QCFJzy6uumF/iPmiDg/LQGsu69VMtO3P+jFvT8P5wR4+ArSLxOENOF0k750ObiUmOVD0Sw/VL28BybGM91G2HGB2Nqls7d3tfjaP6YlSFsE9rfRm6k9m7nYKmVfk3v1g4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eWtfuZ0ae6Z/6S7Y1a+VaNnrdE9NJp/UZbCgbhVf80gjLlRBqCkdzq2HIurOEt4VBHz5iTjHt4oJlCJL/wXi9yfLB3jd2o8YaMgl0IpjyHTq0rhM/OjVwmWSTnlSR7CmGb8WngoUloUc+ye3Qrm4lBiBuQFS3eKlldfNTwKc9zM= Received: by 10.86.59.2 with SMTP id h2mr2230603fga.19.1204684708989; Tue, 04 Mar 2008 18:38:28 -0800 (PST) Received: by 10.86.95.7 with HTTP; Tue, 4 Mar 2008 18:38:28 -0800 (PST) Message-ID: <790a9fff0803041838m2e9e124fnfc2560fde62f0e08@mail.gmail.com> Date: Tue, 4 Mar 2008 20:38:28 -0600 From: "Scot Hetzel" To: "Michael Jung" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080304233327.B19039@woozle.rinet.ru> Cc: Pawel Jakub Dawidek , Dmitry Morozovsky , current@freebsd.org Subject: Re: ZFS sharenfs and NFS options X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 03:05:21 -0000 On 3/4/08, Michael Jung wrote: > Just like any other exported file system is working for me - I have not > used it extensively though: > > (root@zega) /usr/ports/net/nxserver# mount -t zfs > tank on /tank (zfs, local) > tank/export1 on /export1 (zfs, NFS exported, local) > (root@zega) /usr/ports/net/nxserver# > > /etc/exports contains: > > /export1 -maproot=root -alldirs -network 10.0.0.3 -mask > 255.255.255.255 > > --mikej > > > -----Original Message----- > From: owner-freebsd-current@freebsd.org > [mailto:owner-freebsd-current@freebsd.org] On Behalf Of Dmitry > Morozovsky > Sent: Tuesday, March 04, 2008 3:37 PM > To: current@freebsd.org > Cc: Pawel Jakub Dawidek > Subject: ZFS sharenfs and NFS options > > Dear colleagues, > > what is a way to specify NFS options, such as -maproot and -network, on > an ZFS > filesystem? Man page is almost quiet about it, and my quick experiments > did not > show any success... > > I suppose, it should be documented a bit more... > It is documented in the zfs(1M) man page. zfs set sharenfs="-maproot=root -alldir -network 10.0.0.3 -mask 255.255.255.255" myzpool/test cat /etc/zfs/exports # !!! DO NOT EDIT THIS FILE MANUALLY !!! /myzpool/test -maproot=root -alldir -network 10.0.0.3 -mask 255.255.255.255 Scot