misc/162860: Cannot share ZFS filesystem to hosts with a hyphen in hostname

Sascha Frey sf at techfak.net
Thu Nov 24 22:00:24 UTC 2011


>Number:         162860
>Category:       misc
>Synopsis:       Cannot share ZFS filesystem to hosts with a hyphen in hostname
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 24 22:00:23 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Sascha Frey
>Release:        9.0-RC2
>Organization:
Bielefeld University, Faculty of Technology
>Environment:
FreeBSD nibbler.TechFak.Uni-Bielefeld.DE 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 2011     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
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
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list