From owner-freebsd-fs@freebsd.org Mon Aug 3 21:16:51 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 257329B2836 for ; Mon, 3 Aug 2015 21:16:51 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 001951B29 for ; Mon, 3 Aug 2015 21:16:51 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: by mailman.ysv.freebsd.org (Postfix) id F17ED9B2835; Mon, 3 Aug 2015 21:16:50 +0000 (UTC) Delivered-To: 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 F11069B2834 for ; Mon, 3 Aug 2015 21:16:50 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 7CCAF1B28; Mon, 3 Aug 2015 21:16:50 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AGAwCn2b9V/61jaINbGQEBAYNSaQaDHbkwCYFdHQqFL0oCgW8UAQEBAQEBAYEKhCMBAQEBAgEBAQEgKyALEAIBCBgCAg0ZAgInAQkmAgQIBwQBHASIBQgNtRmWEgEBAQEBAQQBAQEBAR2BIoothBocAQEcNAeCaYFDBZR5hHuEc4QlRpNXg2ICJoINHYFvIjEHgQc6gQQBAQE X-IronPort-AV: E=Sophos;i="5.15,603,1432612800"; d="scan'208";a="228846539" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 03 Aug 2015 17:16:48 -0400 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id B126815F542; Mon, 3 Aug 2015 17:16:48 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wW0HJPsT2_oi; Mon, 3 Aug 2015 17:16:48 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 0347D15F55D; Mon, 3 Aug 2015 17:16:48 -0400 (EDT) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iHs7qi_PPmg1; Mon, 3 Aug 2015 17:16:47 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id D825115F542; Mon, 3 Aug 2015 17:16:47 -0400 (EDT) Date: Mon, 3 Aug 2015 17:16:47 -0400 (EDT) From: Rick Macklem To: Julian Elischer Cc: lev@FreeBSD.org, fs@freebsd.org Message-ID: <958669562.8576376.1438636607852.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <55BFC69C.4000700@freebsd.org> References: <130767529.20150801150343@serebryakov.spb.ru> <55BDF5D2.3090306@digiware.nl> <1941826477.20150802210808@serebryakov.spb.ru> <55BE83FA.1060208@digiware.nl> <55BF5932.2090107@FreeBSD.org> <598623926.8227323.1438605000273.JavaMail.zimbra@uoguelph.ca> <55BFC69C.4000700@freebsd.org> Subject: Re: Multiple entries in ZFS "sharenfs" property? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.10] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF34 (Win)/8.0.9_GA_6191) Thread-Topic: Multiple entries in ZFS "sharenfs" property? Thread-Index: 8Tcd/jmEsizO008NOqn60RbB9D4bsw== 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: Mon, 03 Aug 2015 21:16:51 -0000 Julian Elischer wrote: > On 8/3/15 8:30 PM, Rick Macklem wrote: > > Lev wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA512 > >> > >> On 02.08.2015 23:56, Willem Jan Withagen wrote: > >> > >>> Nope, that doesn't work, as far as I can tell. You'd have to revert > >>> to editting /etc/exports. > >> Yep, I know. > >> > > Btw, even if the "hack" Julian Elischer requested was in the system, > > you would still have to export all the volumes, so this discussion > > doesn't really change. > > The only difference would be that the clients could use an NFSv3 mount > > and not an NFSv4 one. > I don't believe we use a separate export entry for each sub-fs > but I'd have to go look again. > Maybe you use the "inherited" feature of ZFS's sharenfs? (I'm pretty sure the exports will be stored/checked on a per-file system basis and will need to exist for all file systems in the hierarchy. Maybe your patch changed that, but it wasn't in what you emailed me months ago.) rick > > > Just wanted to make this clear, rick > > > >>> Or hack on 'zfs set sharenfs' to generate multiple lines, in some > >>> sort of format. Like making ';' a line separator, and then prefix > >>> each part with the volume we are modifying. > >>> > >>> Place to give it a go are in: > >>> cddl/compat/opensolaris/misc/fsshare.c:213 if (share) { > >>> fprintf(newfd, "%s\t%s\n", mountpoint, translate_opts(shareopts)); > >>> } And there split the shareopts on the split char (eg. ';') in > >>> several shareopts and then loop over them. Disadvantage is that the > >>> max length op the options is: MAXPATHLEN. So you can easily run out > >>> of space if you have many exports to do. > >> Here is PR with patch about this, from 2012 :( > >> > >> - -- > >> // Lev Serebryakov > >> -----BEGIN PGP SIGNATURE----- > >> Version: GnuPG v2 > >> > >> iQJ8BAEBCgBmBQJVv1kyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w > >> ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF > >> QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EeP9d0P/229Jje1vw8QB9LuWkNH81xE > >> SIeYOnXRs4OoJDBmxW1xi5kaKqT+j6A9m7lWEXjm/nWGsULNcjDtP4uqQehVZDl3 > >> 7d/eGZDQgrZa5zUxvxMfb0hoWxCZNYFf6N1sPB+98ZwPVH2ADD+7h4ljusoI19gD > >> ZVjTEDeWKBln2YWWHXDDJwjFeF/AqwZzf6o0Nn6Wg2k49pAW4hjvRfVFBXYVo8CA > >> sWsD9ilgYteD6LEPdHbPy2pgprlsmIwLV84zjGb2Lk0Txs7k4CP5RnRo276wkmKY > >> lFdvlyDOFna2UsJqTbAdYD5XeTC0Zx08sqd0dPvgmugYICpgFou1rClTd6HYLDTC > >> +n1kmY8CrGn6omOwLeuckzkroPVFV/RgzRfKFdCabTfAoRe1a60Y7MTFCKUVmZnc > >> OOz2F1Ph3PJAyl5aiIZAuDikj+PEkeqbYJPQxeh2neKwOLTLj4G9oGx+CFo8t6Fk > >> Y793GqkrmIkh4O7o8LrLqhT7/II/MybC2a31RjZRfdukofIgC+CEw56IcP7tgb8U > >> L2f+QxprnQDbwFwkjJAvU/x6dPvy4cztF5vA3qtY5HAW21u+ROrAHBorANq83nZT > >> Y7Ab4vrcThoXTJnNgzN0usOz0OUdtHtVz+5OOoLNJsPVbFFrdIa2I67jW4giDiVv > >> +Vo4KfE2/wL2MpiviQQ7 > >> =GB/t > >> -----END PGP SIGNATURE----- > >> _______________________________________________ > >> freebsd-fs@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs > >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >> > > _______________________________________________ > > freebsd-fs@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > > >