NFSv4: mount -t nsf4 not the same as mount_newnfs?

Freddie Cash fjwcash at
Mon Feb 8 23:03:55 UTC 2010

On Mon, Feb 8, 2010 at 2:37 PM, Rick Macklem <rmacklem at> 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  local

# cat /etc/exports

# cat /etc/zfs/exports

/storage/backup -maproot=root

# pgrep -lf exports
1381 /usr/sbin/mountd -r -p 32000 /etc/exports /etc/zfs/exports

Freddie Cash
fjwcash at

More information about the freebsd-questions mailing list