[pnfs] [PATCH] Fixed client's NFS40_enc_getattr_sz calculation.

Labiaga, Ricardo Ricardo.Labiaga at netapp.com
Thu Nov 8 15:28:03 EST 2007


Thanks for finding and fixing this problem.  It's been pushed to
2.6-latest.

- ricardo 

> -----Original Message-----
> From: Sager, Mike 
> Sent: Thursday, November 08, 2007 11:49 AM
> To: pnfs at linux-nfs.org
> Cc: root
> Subject: [pnfs] [PATCH] Fixed client's NFS40_enc_getattr_sz 
> calculation.
> 
> From: root <root at sager1.hq.netapp.com>
> 
> The calculation was omitting encode_putfh_maxsz.
> 
> Signed-off-by: Mike Sager <sager at netapp.com>
> ---
>  fs/nfs/nfs4xdr.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
> index f959156..404334b 100644
> --- a/fs/nfs/nfs4xdr.c
> +++ b/fs/nfs/nfs4xdr.c
> @@ -422,6 +422,7 @@ static int nr_sequence_quads = 0;
>  				decode_putfh_maxsz + \
>  				decode_access_maxsz)
>  #define NFS40_enc_getattr_sz	(compound_encode_hdr_maxsz + \
> +				encode_putfh_maxsz + \
>  				encode_getattr_maxsz)
>  #define NFS40_dec_getattr_sz	(compound_decode_hdr_maxsz + \
>  				decode_putfh_maxsz + \
> -- 
> 1.5.0.5
> 
> _______________________________________________
> pNFS mailing list
> pNFS at linux-nfs.org
> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs
> 


More information about the pNFS mailing list