From owner-freebsd-fs@freebsd.org Sat Aug 1 12:07:50 2015 Return-Path: Delivered-To: freebsd-fs@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 9B6C09AE202 for ; Sat, 1 Aug 2015 12:07:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 603C4E9F for ; Sat, 1 Aug 2015 12:07:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:2924:7e01:7d9c:bbfe]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 3F7EC2055; Sat, 1 Aug 2015 15:07:48 +0300 (MSK) Date: Sat, 1 Aug 2015 15:07:41 +0300 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1402689794.20150801150741@serebryakov.spb.ru> To: Ahmed Kamal via freebsd-fs Subject: Re: NFS & ZFS: how to export whole FS hierarhy to mount it with one command on client? In-Reply-To: References: <795246861.20150801140429@serebryakov.spb.ru> <1363497421.7238055.1438428070047.JavaMail.zimbra@uoguelph.ca> <1593307781.20150801143052@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Aug 2015 12:07:50 -0000 Hello Ahmed, Saturday, August 1, 2015, 3:01:09 PM, you wrote: > My setup is > # cat /etc/exports > V4: / -sec=sys > # zfs get sharenfs sitank/home > NAME PROPERTY VALUE SOURCE > sitank/home sharenfs on local > and that's it .. All children zfs datasets under sitank/home inherit the > sharenfs=on property and life works. The integration between zfs and > sharing nfs is not too smooth .. so ensure it's the last step you do Problem is, I need different "maproot" and "ro/rw" options for different networks. Looks like I need to mention each filesystem (for each network!) manually in /etc/exports. -- Best regards, Lev mailto:lev@FreeBSD.org