From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 26 20:10:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4431D63E for ; Tue, 26 Feb 2013 20:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 287A51C9A for ; Tue, 26 Feb 2013 20:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1QKA2E0061645 for ; Tue, 26 Feb 2013 20:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1QKA2bC061644; Tue, 26 Feb 2013 20:10:02 GMT (envelope-from gnats) Resent-Date: Tue, 26 Feb 2013 20:10:02 GMT Resent-Message-Id: <201302262010.r1QKA2bC061644@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, McClane Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0DFFA4EE for ; Tue, 26 Feb 2013 20:02:54 +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 DB5FB1C60 for ; Tue, 26 Feb 2013 20:02:53 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1QK2rPb082006 for ; Tue, 26 Feb 2013 20:02:53 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r1QK2rLF082005; Tue, 26 Feb 2013 20:02:53 GMT (envelope-from nobody) Message-Id: <201302262002.r1QK2rLF082005@red.freebsd.org> Date: Tue, 26 Feb 2013 20:02:53 GMT From: McClane To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/176449: ZFS NFS export went wrong with spezial hostname character X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 20:10:02 -0000 >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: