Date: Thu, 1 Sep 2016 13:43:54 -0700 From: Tim Rice <tim@xinuos.com> To: freebsd-current@FreeBSD.org Subject: /etc/zfs/exports conversion problem Message-ID: <ea09e455-c2e3-0fa6-09d6-927c2b0ec83b@xinuos.com>
next in thread | raw e-mail | index | archive | help
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@xinuos.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ea09e455-c2e3-0fa6-09d6-927c2b0ec83b>