From owner-freebsd-current@freebsd.org Thu Sep 1 22:05:40 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 C7033BCC624 for ; Thu, 1 Sep 2016 22:05:40 +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 980156DD for ; Thu, 1 Sep 2016 22:05:39 +0000 (UTC) (envelope-from tim@xinuos.com) Received: from localhost (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id 00062880466 for ; Thu, 1 Sep 2016 18:05:38 -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 UjlYBHvmhVtb for ; Thu, 1 Sep 2016 18:05:38 -0400 (EDT) Received: from zhost.uxsglobal.com (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id D0BEF8806CC for ; Thu, 1 Sep 2016 18:05:38 -0400 (EDT) Received: from [192.168.50.61] (fw01.multitalents.net [173.164.249.129]) by zhost.uxsglobal.com (Postfix) with ESMTPSA id 97671880466 for ; Thu, 1 Sep 2016 18:05:38 -0400 (EDT) Subject: Re: /etc/zfs/exports conversion problem To: freebsd-current@freebsd.org References: From: Tim Rice Message-ID: Date: Thu, 1 Sep 2016 15:05:37 -0700 User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; 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 22:05:40 -0000 never mind. Sorry for the noise. Silly me, using mount options that work on solaris on a freebsd system. On 09/01/16 13:43, Tim Rice wrote: > 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 707 456-1146