linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Cc: Steve Dickson <steved@redhat.com>,
	Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 2/2] rpc.nfsd: Allow v4.2 server support with the -V option
Date: Tue, 30 Jul 2013 16:29:59 -0400	[thread overview]
Message-ID: <20130730202959.GG1443@fieldses.org> (raw)
In-Reply-To: <1375200538.2468.3.camel@leira.trondhjem.org>

On Tue, Jul 30, 2013 at 04:09:06PM +0000, Myklebust, Trond wrote:
> On Tue, 2013-07-30 at 11:59 -0400, J. Bruce Fields wrote:
> > On Sun, Jul 28, 2013 at 02:36:38PM -0400, Steve Dickson wrote:
> > > Signed-off-by: Steve Dickson <steved@redhat.com>
> > 
> > I agree that we want to be able to turn on 4.2 support with -V, but this
> > does more than that:
> > 
> > > -	if (minorvers41)
> > > -		off += snprintf(ptr+off, sizeof(buf) - off, "%c4.1",
> > > -				minorvers41 > 0 ? '+' : '-');
> > > +	for (n = NFS4_MINMINOR; n <= NFS4_MAXMINOR; n++) {
> > > +		if (NFSCTL_VERISSET(minorvers, n)) 
> > > +			off += snprintf(ptr+off, sizeof(buf) - off, "+4.%d ", n);
> > > +		else			
> > > +			off += snprintf(ptr+off, sizeof(buf) - off, "-4.%d ", n);
> > > +	}
> > >  	for (n = NFSD_MINVERS; n <= NFSD_MAXVERS; n++) {
> > >  		if (NFSCTL_VERISSET(ctlbits, n))
> > >  		    off += snprintf(ptr+off, sizeof(buf) - off, "+%d ", n);
> > 
> > Previously minorvers41 could be set to:
> > 
> > 	 1: turn on 4.1
> > 	-1: turn off 4.1
> > 	 0: keep kernel default (user didn't specify)
> > 
> > This patch removes the "0" case, which I liked.
> 
> Why should NFSv4 minor versions be treated any differently from major
> versions here? We don't have a 'kernel default' for NFSv2 or v3 or v4.0.

I think "run the highest minorversion currently considered sufficiently
mature" is a useful option.

I don't know why that wasn't done for earlier versions.

--b.

  reply	other threads:[~2013-07-30 20:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28 18:36 [PATCH 1/2] rpc.nfsd: No longer advertise NFS v2 support Steve Dickson
2013-07-28 18:36 ` [PATCH 2/2] rpc.nfsd: Allow v4.2 server support with the -V option Steve Dickson
2013-07-30 15:59   ` J. Bruce Fields
2013-07-30 16:09     ` Myklebust, Trond
2013-07-30 20:29       ` J. Bruce Fields [this message]
2013-08-19 18:26   ` Steve Dickson
2013-07-30 15:51 ` [PATCH 1/2] rpc.nfsd: No longer advertise NFS v2 support J. Bruce Fields

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=20130730202959.GG1443@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Trond.Myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=steved@redhat.com \
    /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;
as well as URLs for NNTP newsgroup(s).