misc/176449: ZFS NFS export went wrong with spezial hostname character
McClane
everytrash at gmail.com
Tue Feb 26 20:10:02 UTC 2013
>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 at 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 at XXX ~ # zfs set sharenfs="-maproot=root xxxxxx-01" tank/nfs
--------------------------------------------------------------------
--------------------------------------------------------------------
root at XXX ~ # cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/nfs -maproot=root xxxxxx 01
--------------------------------------------------------------------
--------------------------------------------------------------------
root at XXX ~ # showmount -e
Exports list on localhost:
--------------------------------------------------------------------
>Fix:
Complement the "-" character manually into the "etc/zfs/exports" file.
--------------------------------------------------------------------
root at XXX ~ # cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/nfs -maproot=root xxxxxx-01
--------------------------------------------------------------------
--------------------------------------------------------------------
root at XXX ~ # service mountd reload
--------------------------------------------------------------------
--------------------------------------------------------------------
root at XXX ~ # showmount -e
Exports list on localhost:
/nfs xxxxxx-01
--------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list