linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jim Rees <rees@umich.edu>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 2/3] NFS: Ensure we display the minor version correctly in /proc/mounts etc.
Date: Fri, 2 Mar 2012 15:46:03 -0500	[thread overview]
Message-ID: <20120302204603.GA1807@umich.edu> (raw)
In-Reply-To: <1330715086-13871-2-git-send-email-Trond.Myklebust@netapp.com>

Trond Myklebust wrote:

  The 'minorversion' mount option is now deprecated, so we need to display
  the minor version number in the 'vers=' format.
  
  Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  ---
   fs/nfs/super.c |   12 ++++++++++--
   1 files changed, 10 insertions(+), 2 deletions(-)
  
  diff --git a/fs/nfs/super.c b/fs/nfs/super.c
  index ab58bb9..7f0c93f 100644
  --- a/fs/nfs/super.c
  +++ b/fs/nfs/super.c
  @@ -640,7 +640,6 @@ static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss,
   	struct nfs_client *clp = nfss->nfs_client;
   
   	seq_printf(m, ",clientaddr=%s", clp->cl_ipaddr);
  -	seq_printf(m, ",minorversion=%u", clp->cl_minorversion);
   }
   #else
   static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss,
  @@ -649,6 +648,15 @@ static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss,
   }
   #endif
   
  +static void nfs_show_nfs_version(struct seq_file *m,
  +		unsigned int version,
  +		unsigned int minorversion)
  +{
  +	seq_printf(m, ",vers=%u", version);

Isn't "nfsvers=" preferred?  That's what the man page implies.

  +	if (version == 4)

Should this be "version >= 4"?  (only half serious)

  reply	other threads:[~2012-03-02 20:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 19:04 [PATCH 1/3] NFS: Extend the -overs= mount option to allow 4.x minorversions Trond Myklebust
2012-03-02 19:04 ` [PATCH 2/3] NFS: Ensure we display the minor version correctly in /proc/mounts etc Trond Myklebust
2012-03-02 20:46   ` Jim Rees [this message]
2012-03-02 20:57     ` Myklebust, Trond
  -- strict thread matches above, loose matches on Subject: below --
2012-03-02 19:07 [PATCH 1/3] NFS: Extend the -overs= mount option to allow 4.x minorversions Trond Myklebust
2012-03-02 19:07 ` [PATCH 2/3] NFS: Ensure we display the minor version correctly in /proc/mounts etc Trond Myklebust

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=20120302204603.GA1807@umich.edu \
    --to=rees@umich.edu \
    --cc=Trond.Myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    /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).