Re: [PATCH 2/3] NFS: Ensure we display the minor version correctly in /proc/mounts etc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2012-03-02 at 15:46 -0500, Jim Rees wrote:
> 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@xxxxxxxxxx>
>   ---
>    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.

I believe that Solaris, AIX, etc all support the 'vers=' mount option,
so that's what most automounter scripts will use.

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

Which crystal ball should I use to verify that?

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com

��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux