Re: ZFS sharenfs and NFS options

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Tue, 4 Mar 2008 20:38:28 -0600
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
Received on Wed Mar 05 2008 - 02:05:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC