Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Nov 2009 15:33:25 -0800
From:      Freddie Cash <fjwcash@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: What is the state of ZFS on FreeBSD?
Message-ID:  <b269bc570911051533r5e5bac33j3e5667ec0db419d0@mail.gmail.com>
In-Reply-To: <d36406630911051517i6f63abfcpb595f337fce4ffa4@mail.gmail.com>
References:  <17E3C299-725B-434E-805D-CA0C1EA9C8B9@via.net> <9e20d71e0911042247n216e9b02t7b317a55a9bbe131@mail.gmail.com> <11167f520911050019k17137f3q6e36614e2178b12d@mail.gmail.com> <b269bc570911050921mc101138se805c1456cd6abcb@mail.gmail.com> <d36406630911051517i6f63abfcpb595f337fce4ffa4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 5, 2009 at 3:17 PM, krad <kraduk@googlemail.com> wrote:
> 2009/11/5 Freddie Cash <fjwcash@gmail.com>
>> The syntax is the same.  Anything you can put into /etc/exports you
>> can put into the sharenfs property.  In fact, behind the scenes, the
>> sharenfs property is just copied into a private exports file, and the
>> nfs daemon uses that in addition to /etc/exports.
>>
>> The man pages for ZFS are just dumps of the Solaris ones, so a lot of
>> the info is not quite right for a FreeBSD system.
>
> unless  im missing something you have to do it the legacy way
>
> (root@carrera)-(23:13:05)-(~) 0
> $ zfs set sharenfs=yes zdump/web
> (root@carrera)-(23:13:23)-(~) 0
> $ showmount -e 127.0.0.1
> Exports list on 127.0.0.1:
> /videos                            Everyone
> (root@carrera)-(23:13:26)-(~) 0
> $

Put the settings you would normally put into /etc/exports into the
sharenfs property:

[fcash@megadrive  ~]$ zfs get sharenfs storage/backup
NAME            PROPERTY  VALUE                       SOURCE
storage/backup  sharenfs  -maproot=root 192.168.0.12  local

[fcash@megadrive  ~]$ showmount -e
Exports list on localhost:
/storage/backup                    192.168.0.12

-- 
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b269bc570911051533r5e5bac33j3e5667ec0db419d0>