NFSv4: mount -t nsf4 not the same as mount_newnfs?
Freddie Cash
fjwcash at gmail.com
Mon Feb 8 22:32:32 UTC 2010
On Mon, Feb 8, 2010 at 2:37 PM, Rick Macklem <rmacklem at uoguelph.ca> wrote:
> ps: ZFS also has its own export stuff, but it is my understanding that
> putting a line in /etc/exports is sufficient. I've never used ZFS,
> so others will know more than I.
>
My understanding (from having used NFS and ZFS, haven't looked at the code)
is that:
The sharenfs property for a ZFS dataset gets written out to
/etc/zfs/exports, which gets appended to the mountd command-line by default.
Thus, you can use /etc/exports or sharenfs property, whichever is easier.
# zfs get sharenfs storage/backup
NAME PROPERTY VALUE SOURCE
storage/backup sharenfs -maproot=root 192.168.0.12 local
# cat /etc/exports
# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/storage/backup -maproot=root 192.168.0.12
# pgrep -lf exports
1381 /usr/sbin/mountd -r -p 32000 /etc/exports /etc/zfs/exports
--
Freddie Cash
fjwcash at gmail.com
More information about the freebsd-stable
mailing list