aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-12-14 14:56:07 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:58 -0500
commit69dd716c5ffd89f5ba14ffb871d633ecea74d13a (patch)
treebbf720dc7f16f99adc09063f934033eb9e36b307
parent3c7c7e4812e40e50a9ce9d687432ab5515cb3f2f (diff)
NFSv4: Add socket proto argument to setclientid
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4proc.c4
-rw-r--r--include/linux/nfs_xdr.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 5e8c4cf7959e..b3d4e8e5696a 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2891,10 +2891,12 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short po
2891 2891
2892 for(;;) { 2892 for(;;) {
2893 setclientid.sc_name_len = scnprintf(setclientid.sc_name, 2893 setclientid.sc_name_len = scnprintf(setclientid.sc_name,
2894 sizeof(setclientid.sc_name), "%s/%s %s %u", 2894 sizeof(setclientid.sc_name), "%s/%s %s %s %u",
2895 clp->cl_ipaddr, 2895 clp->cl_ipaddr,
2896 rpc_peeraddr2str(clp->cl_rpcclient, 2896 rpc_peeraddr2str(clp->cl_rpcclient,
2897 RPC_DISPLAY_ADDR), 2897 RPC_DISPLAY_ADDR),
2898 rpc_peeraddr2str(clp->cl_rpcclient,
2899 RPC_DISPLAY_PROTO),
2898 cred->cr_ops->cr_name, 2900 cred->cr_ops->cr_name,
2899 clp->cl_id_uniquifier); 2901 clp->cl_id_uniquifier);
2900 setclientid.sc_netid_len = scnprintf(setclientid.sc_netid, 2902 setclientid.sc_netid_len = scnprintf(setclientid.sc_netid,
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index d8e395d0c7c9..d342ae5c76ab 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -666,7 +666,7 @@ struct nfs4_rename_res {
666 struct nfs_fattr * new_fattr; 666 struct nfs_fattr * new_fattr;
667}; 667};
668 668
669#define NFS4_SETCLIENTID_NAMELEN (48) 669#define NFS4_SETCLIENTID_NAMELEN (56)
670struct nfs4_setclientid { 670struct nfs4_setclientid {
671 const nfs4_verifier * sc_verifier; 671 const nfs4_verifier * sc_verifier;
672 unsigned int sc_name_len; 672 unsigned int sc_name_len;