From owner-freebsd-current@freebsd.org Thu Sep 1 20:52:49 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA520BCC9BE for ; Thu, 1 Sep 2016 20:52:49 +0000 (UTC) (envelope-from tim@xinuos.com) Received: from zhost.uxsglobal.com (zhost.xinuos.com [144.202.236.63]) by mx1.freebsd.org (Postfix) with ESMTP id 8AF2A1B5 for ; Thu, 1 Sep 2016 20:52:49 +0000 (UTC) (envelope-from tim@xinuos.com) Received: from localhost (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id 303198806A4 for ; Thu, 1 Sep 2016 16:43:56 -0400 (EDT) Received: from zhost.uxsglobal.com ([127.0.0.1]) by localhost (zhost.uxsglobalhost.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bhmzj6s_unds for ; Thu, 1 Sep 2016 16:43:56 -0400 (EDT) Received: from zhost.uxsglobal.com (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id 1071E8806CC for ; Thu, 1 Sep 2016 16:43:56 -0400 (EDT) Received: from [192.168.50.61] (fw01.multitalents.net [173.164.249.129]) by zhost.uxsglobal.com (Postfix) with ESMTPSA id CBD1E8806A4 for ; Thu, 1 Sep 2016 16:43:55 -0400 (EDT) To: freebsd-current@FreeBSD.org From: Tim Rice Subject: /etc/zfs/exports conversion problem Message-ID: Date: Thu, 1 Sep 2016 13:43:54 -0700 User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 20:52:49 -0000 Whatever program creates /etc/zfs/exports from a "zfs set sharenfs ...." command does not act correctly if hostnames have a - in them. I first spotted this on a 10.3 system. Still exists in 11 RC2 Steps to reproduce. On the 11.0-RC2 EC2 instance I spun up, the pool name was tstpool # zfs create tstpool/some-test-fs # zfs set \ sharenfs='rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com' \ tstpool/some-test-fs # cat /etc/zfs/exports # !!! DO NOT EDIT THIS FILE MANUALLY !!! /tstpool/some-test-fs rw=devlab16 79.newjersey.sco.com root=devlab16 79.newjersey.sco.com # zfs get sharenfs tstpool/some-test-fs NAME PROPERTY VALUE SOURCE tstpool/some-test-fs sharenfs rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com local Note the missing dash between 16 and 79 in /etc/zfs/exports but the sharenfs property is correct. Sorry I haven't had time to track down where the trouble is. I just ran into this setting up a storage server. -- Tim Rice tim@xinuos.com