From owner-freebsd-stable@FreeBSD.ORG Wed Aug 25 07:47:16 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B04F10656A3 for ; Wed, 25 Aug 2010 07:47:16 +0000 (UTC) (envelope-from rebehn@ant.uni-bremen.de) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.freebsd.org (Postfix) with ESMTP id D23DB8FC0A for ; Wed, 25 Aug 2010 07:47:15 +0000 (UTC) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10]) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1OoAaK-0001jr-S2; Wed, 25 Aug 2010 09:39:48 +0200 From: Heinrich Rebehn Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Aug 2010 09:47:13 +0200 To: freebsd-stable@freebsd.org Message-Id: <3D57D985-4B4D-4657-86E0-C93EFB3549CC@ant.uni-bremen.de> Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Subject: zfs sharenfs with multiple hosts/networks and options X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 07:47:16 -0000 Hi list, with traditional /etc/exports i can do /export/linux/root -ro xxx.xxx.xxx.0/24 /export/linux/root -maproot=3D0 xxx.xxx.xxx.1 How can i do this using zfs's sharenfs option? When i try=20 zfs set sharenfs=3D"-ro -network xxx.xxx.xxx.0/24,-maproot=3D0 = xxx.xxx.xxx.1" data/linux/root /var/log/messages shows "network/host conflict" and "bad exports list = line. The general problem seems to be that with each "zfs set sharenfs" = command, the corresponding in /etc/zfs/exports gets overwritten. Is there a workaround for this besides ignoring sharenfs and using hand = edited /etc/exports? Thanks for any help, Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - Phone : +49/421/218-62394 Fax : -3341