ZFS and 'traditional' nfs-export
Kris Kennaway
kris at FreeBSD.org
Wed Oct 28 01:15:22 UTC 2009
Arno J. Klaassen wrote:
> hello,
>
> "Larry Rosenman" <ler at lerctr.org> writes:
>
>> ZFS makes its own version of the exports file.
>>
>> Just do it that way, and be safe.
>>
>> You can pass the full set of NFS options in the sharenfs parameter....
>
> ah ok, I see. Thanks for answering.
>
> I got fooled by the man zfs(1M) example :
>
> zfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home
>
> This syntax does not seem to work for me (8.0RC2).
> Maybe an extra line could be added that one can just set
> the sharenfs property to exactly the same character string
> as in /etc/exports.
Yeah that is the solaris notation -- various things in the manpages have
not yet been customized for FreeBSD, which can be a bit confusing.
The only limitation I've found in using sharenfs is that you can't
specify multiple exports for the same filesystem, e.g. exporting to
different hosts/networks with different options. The solaris notation
above allows you to express this.
Kris
More information about the freebsd-net
mailing list