From: "J. Bruce Fields" <bfields@fieldses.org>
To: Steve Dickson <SteveD@redhat.com>
Cc: Neil Brown <neilb@cse.unsw.edu.au>,
nfs@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [NFS] [PATCH] kNFSD - Allowing rpc.nfsd to setting of the port, transport and version the server will use
Date: Fri, 7 Oct 2005 12:44:35 -0400 [thread overview]
Message-ID: <20051007164435.GC9759@fieldses.org> (raw)
In-Reply-To: <43469FA7.7020908@RedHat.com>
On Fri, Oct 07, 2005 at 12:17:43PM -0400, Steve Dickson wrote:
> Here is a kernel patch that will enable the setting
> of the port knfsd will listens on, the transport knfsd
> will support and which NFS version will be advertised.
>
> The nfs-utils patch, which is also attached, will added
> the following flags to rpc.nfsd that will enable the kernel
> functionality (Note: These patches are NOT dependent on each
> other. Meaning rpc.nfsd and knfsd will still function correctly
> if one or the other patch do or do not exist):
>
>
> -N or --no-nfs-version vers
> This option can be used to request that rpc.nfsd does not offer
> certain versions of NFS. The current version of rpc.nfsd can
> support both NFS version 2,3 and the newer version 4.
So the obvious question is what will happen if someone does
rpc.nfsd -N 3
on a server supporting 2, 3, and 4.
It looks like the code in svc_create() will set pg_lovers to 2 and
pg_hivers to 4 in that case. So if someone tries to use version 3, the
error they get back will be a somewhat contradictory "sorry, I only
support versions 2 through 4."
It seems to me that it'd be cleaner if the kernel interface only
accepted a range (e.g., "2--4" or "2--3"). Then if someone
attempted the above, they'll get an error back immediately.
Or svc_create could be adjusted to report a more conservative range
("2--2" or "4--4" instead of "2--4").
But I don't have really strong feelings about it. Maybe we shouldn't
care enough about that case.
--b.
next prev parent reply other threads:[~2005-10-07 16:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-07 16:17 [PATCH] kNFSD - Allowing rpc.nfsd to setting of the port, transport and version the server will use Steve Dickson
2005-10-07 16:44 ` J. Bruce Fields [this message]
2005-10-07 17:26 ` [NFS] " Steve Dickson
2005-10-07 17:54 ` Peter Staubach
2005-10-11 1:26 ` Neil Brown
2005-10-11 10:54 ` Steve Dickson
2005-10-12 4:23 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051007164435.GC9759@fieldses.org \
--to=bfields@fieldses.org \
--cc=SteveD@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox