On Mon, 2 Mar 2020 at 05:45, Michael <macal...@netbsd.org> wrote: > > Hello, > > On Sun, 01 Mar 2020 11:32:46 -0500 > Greg Troxel <g...@lexort.com> wrote: > > > http://wiki.netbsd.org/zfs/ > > > > This is really rough, and I freely admit that I don't understand all the > > details. Part of the point was to understand things better for myself, > > and part of it is to provoke others into saying what's wrong with it :-) > > > > Please feel free to email me or reply on-list with suggestions, fixes, > > or things that ought to be explained that aren't. (And feel free to > > just fix it, for those that can write. I'm at a stopping point.) > > Something to be addressed would be nfs sharing. Apparently zfs has its > own code for that ( see zfs sharenfs ... ) - it's quite unclear ( to me > at least ) how that interacts with netbsd's own nfs server code. As in, > can I zfs sharenfs a zfs filesystem and still share a bunch of others > via /etc/exports? > I guess I'll do some experiments on that.
No point. It doesn't change the state of the exported list at all. # zfs get sharenfs tank/t1 NAME PROPERTY VALUE SOURCE tank/t1 sharenfs no local # zfs set sharenfs=yes tank/t1 # zfs get sharenfs tank/t1 NAME PROPERTY VALUE SOURCE tank/t1 sharenfs yes local # showmount -e Exports list on localhost: /xcpng 192.168.0.0 ..... But of course you can: ... # echo /tank/t1 -maproot=0:10 -network 192.168.0/24 >> /etc/exports # pkill -HUP mountd # showmount -e Exports list on localhost: /tank/t1 192.168.0.0 /xcpng 192.168.0.0 .... .... And on another system: ... # showmount -E ymir /tank/t1 /xcpng .... # mount -t nfs ymir:/tank/t1 /mnt/t1 # ls -l /mnt/t1 total 1 drwxr-xr-x 2 root wheel 2 Oct 27 11:30 minidlna crw-rw-rw- 1 root wheel 2, 2 Feb 12 13:13 null .... BTW there is something wrong with showmount on -current, it is very slow: # time showmount -E ymir /tank/t1 /xcpng ... showmount -E ymir 0.00s user 0.00s system 0% cpu 20.098 total The same from a FreeBSD host: time showmount -E ymir /tank/t1 /xcpng ... 0.000u 0.005s 0:00.04 0.0% 0+0k 3+0io 0pf+0w And from an old 8.99.2 host I also get quick: ... $ time showmount -e ymir Exports list on ymir: /tank/t1 192.168.0.0 /xcpng 192.168.0.0 ... showmount -e ymir 0.03s user 0.03s system 65% cpu 0.089 total ... > > have fun > Michael -- ----