From owner-freebsd-fs@freebsd.org Mon Aug 3 19:53:12 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 AB6DB9B20E7 for ; Mon, 3 Aug 2015 19:53:12 +0000 (UTC) (envelope-from julian@freebsd.org) 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 900321A8F for ; Mon, 3 Aug 2015 19:53:12 +0000 (UTC) (envelope-from julian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8D4759B20E6; Mon, 3 Aug 2015 19:53:12 +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 730379B20E4 for ; Mon, 3 Aug 2015 19:53:12 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4289B1A8E; Mon, 3 Aug 2015 19:53:11 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t73Jr6ax090788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 3 Aug 2015 12:53:09 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Multiple entries in ZFS "sharenfs" property? To: Rick Macklem , lev@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> Cc: fs@freebsd.org From: Julian Elischer Message-ID: <55BFC69C.4000700@freebsd.org> Date: Tue, 4 Aug 2015 03:53:00 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <598623926.8227323.1438605000273.JavaMail.zimbra@uoguelph.ca> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Mon, 03 Aug 2015 19:53:12 -0000 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. > 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" >