[pnfs] [PATCH] Set the right size for sockaddr.

Benny Halevy bhalevy at panasas.com
Thu May 1 11:16:49 EDT 2008


Thanks!  Applied to the pnfs (and pnfs-mount-vers) branches.

Benny

On May. 01, 2008, 6:01 +0300, Marc Eshel <eshel at almaden.ibm.com> wrote:
> From: Marc Eshel <eshel at almaden.ibm.com>
> 
> 
> ---
> 
>  fs/nfs/nfs4filelayoutdev.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c
> index 59ca50a..aee5425 100644
> --- a/fs/nfs/nfs4filelayoutdev.c
> +++ b/fs/nfs/nfs4filelayoutdev.c
> @@ -240,7 +240,7 @@ nfs4_pnfs_ds_create(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds)
>  	err = nfs4_set_client(&tmp,
>  			      mds_srv->nfs_client->cl_hostname,
>  			      (struct sockaddr *)&sin,
> -			      addrlen,
> +			      sizeof(struct sockaddr),
>  			      ip_addr,
>  			      RPC_AUTH_UNIX,
>  			      IPPROTO_TCP,
> _______________________________________________
> pNFS mailing list
> pNFS at linux-nfs.org
> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs



More information about the pNFS mailing list