From owner-freebsd-fs@freebsd.org Sat Apr 23 20:41:06 2016 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 EAF86B1A893 for ; Sat, 23 Apr 2016 20:41:06 +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 C964919C7 for ; Sat, 23 Apr 2016 20:41:06 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: by mailman.ysv.freebsd.org (Postfix) id C8B3BB1A892; Sat, 23 Apr 2016 20:41:06 +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 C858CB1A891 for ; Sat, 23 Apr 2016 20:41:06 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 3E8D819C4; Sat, 23 Apr 2016 20:41:05 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:zmBncxXM8u0x+blJdzNOQJla40vV8LGtZVwlr6E/grcLSJyIuqrYZxOHt8tkgFKBZ4jH8fUM07OQ6PCwHzNaqs/c6jgrS99laVwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfTR8Kum9IIPOlcP/j7n0oM2DJVoSz2PgO/tbF1afk0b4joEum4xsK6I8mFPig0BjXKBo/15uPk+ZhB3m5829r9ZJ+iVUvO89pYYbCf2pN4xxd7FTDSwnPmYp/4Wr8ECbFUrcrkYaSXgcxxpUHxDevla9WpbqrjC8uPBw1SOBMYvxV79zXD2j66JiTljsiTwbNjg39ybZkMF9hrlX5Ry69CB4lsTdZIyFcvBjZKfMctpcRGddUI5YUyFRRImhdY8eAONHPOtEocO181IKoAv4DxS2APLgw3lJi2P49aI/2uUlVwrB2VpzMcgJtSHurd72fIIbWuOxwayAmS/GZvhV3Tr4wJXPfQ0spemMG7l5J5mCgXIzHh/I2w3D4bfuOCmYg6FU6zCW X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DPAQB43RtX/61jaINehAt9BrlsAQ2BdRcLhSJKAoFXFAEBAQEBAQEBZCeCLYIVAQEEAQEBIAQnIAsQAgEIGAICDRkCAicBCSYCBAgHBAEcBIgJDq5UkGABAQEBAQEBAQEBAQEBAQEBARUEfIUlgX2CToQgAQEFgxiCVgWYD4V7hS6Re48tAh4BAUKEByAwB4c/Nn8BAQE X-IronPort-AV: E=Sophos;i="5.24,524,1454994000"; d="scan'208";a="279786753" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-annu.net.uoguelph.ca with ESMTP; 23 Apr 2016 16:40:59 -0400 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 1AA9715F579; Sat, 23 Apr 2016 16:40:59 -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 SHGWY0pfWZyZ; Sat, 23 Apr 2016 16:40:58 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 435DC15F57B; Sat, 23 Apr 2016 16:40:58 -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 DGwnJCS2BMXt; Sat, 23 Apr 2016 16:40:58 -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 1CD5515F579; Sat, 23 Apr 2016 16:40:58 -0400 (EDT) Date: Sat, 23 Apr 2016 16:40:57 -0400 (EDT) From: Rick Macklem To: "alex.burlyga.ietf alex.burlyga.ietf" Cc: Brian Mueller , fs@freebsd.org, rpokala@freebsd.org Message-ID: <324385238.75678269.1461444057967.JavaMail.zimbra@uoguelph.ca> In-Reply-To: References: <1384504373.75445193.1461412235720.JavaMail.zimbra@uoguelph.ca> Subject: Re: Add NFSv3 tree root to mountd 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 - FF18 (Linux)/8.0.9_GA_6191) Thread-Topic: Add NFSv3 tree root to mountd Thread-Index: 3EUcJpq2UAwn6Ijf4KC2IKzKQx4ATg== X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 20:41:07 -0000 Alex Burlyga wrote: > On Apr 23, 2016 04:51, "Rick Macklem" wrote: > > > > Brian Mueller wrote: > > > Similar to mountd's ability to specify the NFSv4 tree root via the V4: > line > > > in the exports file, I would like to add the ability to specify a NFSv3 > tree > > > root. The goal to have the same exported path for both the V3 and V4. > If > > > you have exports file like the following: > > > > > > /foo/bar > > > V3: /foo/bar > > > V4: /foo/bar > > > > > > NFS clients would mount /foo/bar by running > > > > > > mount -t nfs -o ver=3 server:/ /mnt/v3 > > > mount -t nfs -o ver=4 server:/ /mnt/v4 > > > > > > Without the change, the NFS client would need to specify different > paths for > > > v3 and v4 > > > > > > mount -t nfs -o ver=3 server:/foo/bar /mnt/v3 > > > mount -t nfs -o ver=4 server:/ /mnt/v4 > > > > > > Feedback appreciated. If there aren't any objections with > incorporating this > > > change into FreeBSD, I will start working on the changes to mountd. > > > > > Basically I assume you are planning on using the V3 "/foo/bar" as a > prefix that > > is prepended to the path when a Mount RPC request arrives. I, personally, > don't > > see a problem with this, assuming that things still work the same when > the "V3" > > line isn't in /etc/exports. > > A couple of comments: > > - Since NFSv3 doesn't follow server mounts, the results of a V3 mount > will still > > be different than NFSv4 unless there is only one file system under > "/foo/bar". > > --> Maybe adding this will just add to the confusion already present > w.r.t. the > > differences between NFSv3 and NFSv4? (Falsely giving the impression > that > > adding the "V3" line somehow makes them the same?) > Agreed, also when testing -actual option on netapp filers(maybe that's the > way to go?) we run into problems with some automounters. Quick look at the > current freebsd, Linux, and Mac OS X does not reveal any problems, perhaps > it was some exotic ones like AIX? Also for v3 adding command line option > that make all exports relative to that path, ala webnfs, would be simpler > way to go? > > > - In case you haven't looked at it, mountd.c is a beast. You'll have fun > adding > > this change to it. > Doing command line option or adding another export option I think is > simpler way. > Yes. I was simply noting that changing mountd.c to add this might be challenging. You might be able to do it fairly easily by using the handling of the "V4" line as an example. mountd.c is about as ugly as a C program gets, at least the part that parses /etc/exports. One more thing... You might need to consider if this will apply to the ZFS specific export stuff. (I know nothing about this except that ZFS generates its own export file.) Have fun with it, rick > > > > rick > > > > > Brian > > > > > > Brian Mueller > > > Panasas Inc. > > > _______________________________________________ > > > freebsd-fs@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > > > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > > > > _______________________________________________ > > freebsd-fs@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >