Bug 162860 - [zfs] Cannot share ZFS filesystem to hosts with a hyphen in hostname
Summary: [zfs] Cannot share ZFS filesystem to hosts with a hyphen in hostname
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 22:00 UTC by Sascha Frey
Modified: 2020-04-03 16:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Frey 2011-11-24 22:00:23 UTC
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-11-28 03:27:17 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:22 UTC
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
Comment 3 sdalu 2020-04-03 16:19:23 UTC
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.