Date: Sat, 23 Apr 2016 07:50:35 -0400 (EDT) From: Rick Macklem <rmacklem@uoguelph.ca> To: Brian Mueller <bmueller@panasas.com> Cc: fs@freebsd.org, rpokala@freebsd.org Subject: Re: Add NFSv3 tree root to mountd Message-ID: <1384504373.75445193.1461412235720.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <BN3PR0801MB09618F66071B9ACA4656E9B6C2600@BN3PR0801MB0961.namprd08.prod.outlook.com> References: <BN3PR0801MB09618F66071B9ACA4656E9B6C2600@BN3PR0801MB0961.namprd08.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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?) - In case you haven't looked at it, mountd.c is a beast. You'll have fun adding this change to it. 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1384504373.75445193.1461412235720.JavaMail.zimbra>