Re: [pnfs] [RFC 11/85] nfs41: nfs_client.cl_minorversion

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

 



On Nov. 10, 2008, 22:19 +0200, Benny Halevy <bhalevy@xxxxxxxxxxx> wrote:
> This field is set to the nfsv4 minor version for this mount.
> 
> Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>

review 11-14: directly set cl_minorversion to data->minorversion in 
callers of nfs4_set_client.

we want to differentiate between autodetect minorersion (-1) and 
one that's explictly set by the mount option. and remember that
for referrals.  keep that as a flag in nfs_client.cl_res_state

On autodetect reclaimer should try with the highest minorversion
and possibly fallback if needed, otherwise try only given
minorversion.  On clone (referral) follow the same algorithm
using the master copy's minorversion configuration.

> ---
>  fs/nfs/client.c           |    1 +
>  include/linux/nfs_fs_sb.h |    3 ++-
>  2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/nfs/client.c b/fs/nfs/client.c
> index fe0bac9..c6e9b4e 100644
> --- a/fs/nfs/client.c
> +++ b/fs/nfs/client.c
> @@ -1030,6 +1030,7 @@ static int nfs4_set_client(struct nfs_server *server,
>  		error = PTR_ERR(clp);
>  		goto error;
>  	}
> +	clp->cl_minorversion = server->minorversion;
>  	error = nfs4_init_client(clp, timeparms, ip_addr, authflavour);
>  	if (error < 0)
>  		goto error_put;
> diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
> index bfc83cc..8379dd5 100644
> --- a/include/linux/nfs_fs_sb.h
> +++ b/include/linux/nfs_fs_sb.h
> @@ -69,7 +69,8 @@ struct nfs_client {
>  	 */
>  	char			cl_ipaddr[48];
>  	unsigned char		cl_id_uniquifier;
> -#endif
> +	u32			cl_minorversion;
> +#endif /* CONFIG_NFS_V4 */
>  };
>  
>  /*
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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