ZFS sharenfs and NFS options
Scot Hetzel
swhetzel at gmail.com
Tue Mar 4 19:05:21 PST 2008
On 3/4/08, Michael Jung <mikej at paymentallianceintl.com> wrote:
> Just like any other exported file system is working for me - I have not
> used it extensively though:
>
> (root at zega) /usr/ports/net/nxserver# mount -t zfs
> tank on /tank (zfs, local)
> tank/export1 on /export1 (zfs, NFS exported, local)
> (root at 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 at freebsd.org
> [mailto:owner-freebsd-current at freebsd.org] On Behalf Of Dmitry
> Morozovsky
> Sent: Tuesday, March 04, 2008 3:37 PM
> To: current at 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
More information about the freebsd-current
mailing list