From owner-freebsd-current@FreeBSD.ORG Wed Mar 5 07:57:42 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 4BCAB1065674 for ; Wed, 5 Mar 2008 07:57:42 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id CA1E78FC1C for ; Wed, 5 Mar 2008 07:57:41 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1144466fgg.35 for ; Tue, 04 Mar 2008 23:57:40 -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=r84LotgeNtYPm2zhubbzTGPqgdePIAYMHVhLI73r7aU=; b=I1INx6MWt3g7PZErQaqoaWQGaNb0adJZul0PuNrKHRbQcLxGL1Dj59MVi72lzf1rneUEckjyyLIeQazYrSJkIBs7gUMWQ5nvqbjvNPMkwZzIX+hNSOLlVx+b4toeqU1FoebnEONHinHfRT2Gmopot+7D9tjp00fkzxlgFX0EEvw= 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=EBUax2Y0EX6PUOUofzMjD344VSkpB8F1r/Gw5IdLVEa6em1rAvh4Tu/aFQ+oY1Qw141Zy+N0gE9jXarut6J2DYONBL82qrroTdB4/0Rx7aayn51tPnnytDBdyQ00K32WK7NlzNV2kSPSsBMcFwlQJeJGMUUrPU8zzeRWoTxwtUI= Received: by 10.86.50.8 with SMTP id x8mr2606274fgx.25.1204703860713; Tue, 04 Mar 2008 23:57:40 -0800 (PST) Received: by 10.86.95.7 with HTTP; Tue, 4 Mar 2008 23:57:40 -0800 (PST) Message-ID: <790a9fff0803042357w6dbc2256jae7eb4d797d8f77f@mail.gmail.com> Date: Wed, 5 Mar 2008 01:57:40 -0600 From: "Scot Hetzel" To: "Dmitry Morozovsky" , "Pawel Jakub Dawidek" In-Reply-To: <20080305094125.G19039@woozle.rinet.ru> 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> <790a9fff0803041838m2e9e124fnfc2560fde62f0e08@mail.gmail.com> <20080305094125.G19039@woozle.rinet.ru> Cc: 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 07:57:42 -0000 On 3/5/08, Dmitry Morozovsky wrote: > On Tue, 4 Mar 2008, Scot Hetzel wrote: > > SH> > what is a way to specify NFS options, such as -maproot and -network, on > SH> > an ZFS > SH> > filesystem? Man page is almost quiet about it, and my quick experiments > SH> > did not > SH> > show any success... > SH> > > SH> > I suppose, it should be documented a bit more... > SH> > > SH> It is documented in the zfs(1M) man page. > SH> > SH> zfs set sharenfs="-maproot=root -alldir -network 10.0.0.3 -mask > SH> 255.255.255.255" myzpool/test > SH> > SH> cat /etc/zfs/exports > SH> # !!! DO NOT EDIT THIS FILE MANUALLY !!! > SH> > SH> /myzpool/test -maproot=root -alldir -network 10.0.0.3 -mask 255.255.255.255 > > Hmm... where did you find it in the manpage? Or did you mean Solaris > man page version? > > Anyway, thanks, it is working now. > I just did a `man zfs` and looked for sharenfs, in there it says that you can set sharenfs to one of 3 values (on, off, or opts): Otherwise, the share(1M) command is invoked with options equivalent to the contents of this property. This line can be interpreted for FreeBSD as: Otherwise, mountd(8) will load the export host addresses and options into the kernel using the contents of this property. Scot