Sharing a ZFS filesystem over NFS to hosts with a hyphen (-) in their hostnames using 'zfs set sharenfs' does not work. 'zfs get sharenfs' does return the correct string as set before, but in /etc/zfs/exports the hyphen in the hostname was replaced with a blank. How-To-Repeat: # zfs set sharenfs="-maproot=root foo-bar" systempool/export/test # zfs get sharenfs systempool/export/test NAME PROPERTY VALUE SOURCE systempool/export/test sharenfs -maproot=root foo-bar local # cat /etc/zfs/exports [...] /export/test -maproot=root foo bar
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainer(s).
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Any progress on this one? This is a big problem for us as we have an hyphen in our domain name, not just for a single host.
I just hit this old bug too. As a hack workaround, you can script edit /etc/zfs/exports to fix up any known munged hyphens and send SIGHUP to mountd. I'm guessing you'd have to hack /etc/rc.d/zfs to re-apply the edit in zfs_start_main() too, since zfs share will keep generating a bogus exports file. I'm sticking with sharenfs=on for now since it's just my home network...
Can anyone confirm this is fixed in -CURRENT? I only have 14.2 running ZFS at the moment. https://cgit.freebsd.org/src/commit/sys/contrib/openzfs/lib/libshare/os/freebsd/nfs.c?id=7a7741af18d6c8a804cc643cb7ecda9d730c6aa6 #16529 29c9e6c32 Fix handling of DNS names with '-' in them for sharenfs