>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 r...@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: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"