From owner-freebsd-fs@FreeBSD.ORG Mon Sep 8 09:26:32 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B5C11065670; Mon, 8 Sep 2008 09:26:32 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 897E58FC28; Mon, 8 Sep 2008 09:26:31 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.2/8.14.2) with ESMTP id m889QUpq075582; Mon, 8 Sep 2008 13:26:30 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 8 Sep 2008 13:26:30 +0400 (MSD) From: Dmitry Morozovsky To: Jeremy Chadwick In-Reply-To: <20080908091052.GA63182@icarus.home.lan> Message-ID: References: <20080907220104.GA26094@icarus.home.lan> <20080907233637.GA51889@icarus.home.lan> <20080908091052.GA63182@icarus.home.lan> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (woozle.rinet.ru [0.0.0.0]); Mon, 08 Sep 2008 13:26:30 +0400 (MSD) Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek Subject: Re: ZFS filesystem: export for more than one subnet X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2008 09:26:32 -0000 On Mon, 8 Sep 2008, Jeremy Chadwick wrote: [snip] JC> It does support CIDR, and the output mountd gave you even shows that JC> it does (look closely at what "bad host" it's giving you -- that isn't JC> the first host in the exports list!). Yes, I already catched it; see below. JC> You changed the syntax of what I gave you as an example. Look closely: JC> JC> # zfs set sharenfs="ro,network=aaa/xx,network=bbb/yy,network=ccc/zz" some_fs JC> JC> Here's what you typed in: JC> JC> # zfs set sharenfs="ro,alldirs,network=195.54.192.0/26,192.168.39.0/24" bv/FreeBSD Anyway, it does not work, alas: marck@beaver:~# zfs set sharenfs="ro,alldirs,network=195.54.192.0/26,network=192.168.39.0/24" bv/FreeBSD marck@beaver:~# tail /var/log/daemon Sep 8 13:22:11 beaver mountd[25992]: network/host conflict Sep 8 13:22:11 beaver mountd[25992]: bad exports list line /FreeBSD -ro -alldirs -network marck@beaver:~# cat /etc/zfs/exports # !!! DO NOT EDIT THIS FILE MANUALLY !!! /FreeBSD -ro -alldirs -network=195.54.192.0/26 -network=192.168.39.0/24 What I' m trying to express is that there would be need to export the same file system to different address blocks *with different options* - -such as rw/ro, and/or maproot/mapall. I'm starting to think we should either mimic such functionality from OpenSolaris or invent it. Thank you for cooperation! Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------