Skip to content

Commit 69dd716

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFSv4: Add socket proto argument to setclientid
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 3c7c7e4 commit 69dd716

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fs/nfs/nfs4proc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2891,10 +2891,12 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short po
28912891

28922892
for(;;) {
28932893
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",
28952895
clp->cl_ipaddr,
28962896
rpc_peeraddr2str(clp->cl_rpcclient,
28972897
RPC_DISPLAY_ADDR),
2898+
rpc_peeraddr2str(clp->cl_rpcclient,
2899+
RPC_DISPLAY_PROTO),
28982900
cred->cr_ops->cr_name,
28992901
clp->cl_id_uniquifier);
29002902
setclientid.sc_netid_len = scnprintf(setclientid.sc_netid,

include/linux/nfs_xdr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ struct nfs4_rename_res {
666666
struct nfs_fattr * new_fattr;
667667
};
668668

669-
#define NFS4_SETCLIENTID_NAMELEN (48)
669+
#define NFS4_SETCLIENTID_NAMELEN (56)
670670
struct nfs4_setclientid {
671671
const nfs4_verifier * sc_verifier;
672672
unsigned int sc_name_len;

0 commit comments

Comments
 (0)