]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
NFSv4: Add socket proto argument to setclientid
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 14 Dec 2007 19:56:07 +0000 (14:56 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:05:58 +0000 (02:05 -0500)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h

index 5e8c4cf7959e323ac7fca51d19061fa5fda3cc64..b3d4e8e5696a4f19ea898ce580401d09512cfea2 100644 (file)
@@ -2891,10 +2891,12 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short po
 
        for(;;) {
                setclientid.sc_name_len = scnprintf(setclientid.sc_name,
-                               sizeof(setclientid.sc_name), "%s/%s %s %u",
+                               sizeof(setclientid.sc_name), "%s/%s %s %s %u",
                                clp->cl_ipaddr,
                                rpc_peeraddr2str(clp->cl_rpcclient,
                                                        RPC_DISPLAY_ADDR),
+                               rpc_peeraddr2str(clp->cl_rpcclient,
+                                                       RPC_DISPLAY_PROTO),
                                cred->cr_ops->cr_name,
                                clp->cl_id_uniquifier);
                setclientid.sc_netid_len = scnprintf(setclientid.sc_netid,
index d8e395d0c7c9536c6d8f44bae174c5ae4a6da601..d342ae5c76abe4d0be047e1bf27c5e788cdd12e4 100644 (file)
@@ -666,7 +666,7 @@ struct nfs4_rename_res {
        struct nfs_fattr *              new_fattr;
 };
 
-#define NFS4_SETCLIENTID_NAMELEN       (48)
+#define NFS4_SETCLIENTID_NAMELEN       (56)
 struct nfs4_setclientid {
        const nfs4_verifier *           sc_verifier;
        unsigned int                    sc_name_len;