Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 2008 01:57:40 -0600
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Dmitry Morozovsky" <marck@rinet.ru>,  "Pawel Jakub Dawidek" <pjd@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: ZFS sharenfs and NFS options
Message-ID:  <790a9fff0803042357w6dbc2256jae7eb4d797d8f77f@mail.gmail.com>
In-Reply-To: <20080305094125.G19039@woozle.rinet.ru>
References:  <20080304233327.B19039@woozle.rinet.ru> <ADC733B130BF1D4A82795B6B3A2654E2A49091@exchange.paymentallianceintl.com> <790a9fff0803041838m2e9e124fnfc2560fde62f0e08@mail.gmail.com> <20080305094125.G19039@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/5/08, Dmitry Morozovsky <marck@rinet.ru> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0803042357w6dbc2256jae7eb4d797d8f77f>