From nobody@FreeBSD.org  Thu Nov 24 21:59:57 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 10AD81065803
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Nov 2011 21:59:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 825718FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Nov 2011 21:59:56 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pAOLxtvi069112
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Nov 2011 21:59:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pAOLxtXt069111;
	Thu, 24 Nov 2011 21:59:55 GMT
	(envelope-from nobody)
Message-Id: <201111242159.pAOLxtXt069111@red.freebsd.org>
Date: Thu, 24 Nov 2011 21:59:55 GMT
From: Sascha Frey <sf@techfak.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Cannot share ZFS filesystem to hosts with a hyphen in hostname
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162860
>Category:       kern
>Synopsis:       [zfs] Cannot share ZFS filesystem to hosts with a hyphen in hostname
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>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:  Mon Nov 28 03:27:34 UTC 2011
>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@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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Nov 28 03:27:17 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162860 
>Unformatted:
