Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2013 20:02:53 GMT
From:      McClane <everytrash@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/176449: ZFS NFS export went wrong with spezial hostname character
Message-ID:  <201302262002.r1QK2rLF082005@red.freebsd.org>
Resent-Message-ID: <201302262010.r1QKA2bC061644@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176449
>Category:       misc
>Synopsis:       ZFS NFS export went wrong with spezial hostname character
>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:   Tue Feb 26 20:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     McClane
>Release:        FreeBSD 9.1-RELEASE
>Organization:
>Environment:
FreeBSD xxxxxx 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
"zfs set" write a wrong entry in "etc/zfs/exports" when the command contains a "-" character in the hostname.
>How-To-Repeat:
--------------------------------------------------------------------
root@XXX ~ # zfs set sharenfs="-maproot=root xxxxxx-01" tank/nfs
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/nfs    -maproot=root xxxxxx 01 
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # showmount -e
Exports list on localhost:
--------------------------------------------------------------------

>Fix:
Complement the "-" character manually into the "etc/zfs/exports" file.

--------------------------------------------------------------------
root@XXX ~ # cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/nfs    -maproot=root xxxxxx-01
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # service mountd reload
--------------------------------------------------------------------

--------------------------------------------------------------------
root@XXX ~ # showmount -e
Exports list on localhost:
/nfs                               xxxxxx-01
--------------------------------------------------------------------


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302262002.r1QK2rLF082005>