Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 19:04:20 -0700
From:      Jeremy Chadwick <jdc@koitsu.org>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>, Olav =?unknown-8bit?B?R3LDuG7DpXM=?= Gjerde <olavgg@gmail.com>
Subject:   Re: nfsv3 vs nfsv4 ? advantages of moving to v4?
Message-ID:  <20130429020420.GB91179@icarus.home.lan>
In-Reply-To: <CAOjFWZ6P5wAzcO4iWkZnwmgimk16K15Xiru=HA2X=PdtHceSsw@mail.gmail.com>
References:  <CALL7tK8Fvy-pLvp3uiONwS1ynqT%2B7-633X2Mx5AvjpM7mH2imQ@mail.gmail.com> <20130428145805.GA81766@icarus.home.lan> <CAOjFWZ6P5wAzcO4iWkZnwmgimk16K15Xiru=HA2X=PdtHceSsw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, Apr 28, 2013 at 03:25:20PM -0700, Freddie Cash wrote:
> cat /etc/zfs/exports
> 
> Works the same for UFS and ZFS. :)
> 
> At least on FreeBSD. Solaris-based OSes have more in-depth support for
> NFS-exported ZFS.

That file is simply the contents of all the "share" properties per ZFS
filesystem.  Look for ZFS_EXPORTS_PATH in src/cddl and work backwards
to the fsshare_main() function in fsshare.c.

That didn't used to work properly, like I said in my mail (last line):

"For exporting ZFS filesystems via NFS, I've always used /etc/exports.
I've never used the "share" property per ZFS filesystem, because in my
experience (at the time -- this was early days of ZFS on FreeBSD) ..."

I'm glad to see whatever was broken has been fixed/addressed/whatever,
but at one time -- and for a fairly lengthy duration -- it did not work.

Not to mention, you're not supposed to mess with that file (see
FILE_HEADER in fsshare.c) by hand.

-- 
| Jeremy Chadwick                                   jdc@koitsu.org |
| UNIX Systems Administrator                http://jdc.koitsu.org/ |
| Mountain View, CA, US                                            |
| Making life hard for others since 1977.             PGP 4BD6C0CB |




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