From owner-freebsd-fs@freebsd.org Sat Aug 1 13:07:31 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 CE69E9AEF79 for ; Sat, 1 Aug 2015 13:07:31 +0000 (UTC) (envelope-from email.ahmedkamal@googlemail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D61A9A3; Sat, 1 Aug 2015 13:07:31 +0000 (UTC) (envelope-from email.ahmedkamal@googlemail.com) Received: by wibud3 with SMTP id ud3so62254346wib.0; Sat, 01 Aug 2015 06:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=BwnhBS0iuK+Wty9KdLcjy3wqPzFtNEVO2Ze9ETdj56M=; b=k0OySfra2ZiJN5im2xHV1CJNzslddoAhH7vHc2dLs2OYOOojccQS1x+bOOkF1Oemaq OMkuZ2ZzGknjEO3tYjS6uiaitvzyFzt+l2rA9APdwJjFuhdeoNoNDbcaEJAPe2Epex9V iCiM4TegSzY+Bqq4V4dmgAYrdmMb7upShsgtCUwlzAB+1HqbOatQOh9NYQ+Xf0Xr5M6j QblDhIr9EUPrI9UrumOt8RIgwhjpj/INsV3n4M9O4sOggypQNGWvA1927I6nUitHXPQn 8qDE8GnpeRqsoXexkjZ47v2Ra3JBKXs19FroXAiTDSKPNPXwbbtj3/NS6QElq7is8Thy fvKg== X-Received: by 10.194.184.232 with SMTP id ex8mr6871444wjc.42.1438434449177; Sat, 01 Aug 2015 06:07:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.6.143 with HTTP; Sat, 1 Aug 2015 06:07:09 -0700 (PDT) In-Reply-To: <1402689794.20150801150741@serebryakov.spb.ru> References: <795246861.20150801140429@serebryakov.spb.ru> <1363497421.7238055.1438428070047.JavaMail.zimbra@uoguelph.ca> <1593307781.20150801143052@serebryakov.spb.ru> <1402689794.20150801150741@serebryakov.spb.ru> From: Ahmed Kamal Date: Sat, 1 Aug 2015 15:07:09 +0200 Message-ID: Subject: Re: NFS & ZFS: how to export whole FS hierarhy to mount it with one command on client? To: lev@freebsd.org Cc: Ahmed Kamal via freebsd-fs Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 13:07:32 -0000 Check this bug report https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=147881 afaict, what you need is not really possible today .. Although this bug has a couple of patches that solve this limitation. No idea why no one picks up those gems and merges them :) On Sat, Aug 1, 2015 at 2:07 PM, Lev Serebryakov wrote: > 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 > >