/etc/zfs/exports conversion problem
Tim Rice
tim at xinuos.com
Thu Sep 1 20:52:49 UTC 2016
Whatever program creates /etc/zfs/exports from a "zfs set sharenfs ...."
command
does not act correctly if hostnames have a - in them.
I first spotted this on a 10.3 system.
Still exists in 11 RC2
Steps to reproduce.
On the 11.0-RC2 EC2 instance I spun up, the pool name was tstpool
# zfs create tstpool/some-test-fs
# zfs set \
sharenfs='rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com'
\
tstpool/some-test-fs
# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/tstpool/some-test-fs rw=devlab16 79.newjersey.sco.com root=devlab16
79.newjersey.sco.com
# zfs get sharenfs tstpool/some-test-fs
NAME PROPERTY VALUE SOURCE
tstpool/some-test-fs sharenfs
rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com local
Note the missing dash between 16 and 79 in /etc/zfs/exports but the
sharenfs property
is correct.
Sorry I haven't had time to track down where the trouble is. I just ran
into this
setting up a storage server.
--
Tim Rice
tim at xinuos.com
More information about the freebsd-current
mailing list