Commit 3cedf13a authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Trond Myklebust

NFSv4: increase client-provided nfs4 clientid size

Neil Brown observed that the current limit of 32 bytes isn't enough to hold two
ip addresses and the rest of the stuff we're putting in it, so it's often
truncated to the point where it's unlikely to be unique.  This can cause
spurious CLID_INUSE's from the server.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from fc8c17ec251e984ab3df9182ed097aa5b577c915 commit)
parent 8e037094
...@@ -659,7 +659,7 @@ struct nfs4_rename_res { ...@@ -659,7 +659,7 @@ struct nfs4_rename_res {
struct nfs4_setclientid { struct nfs4_setclientid {
const nfs4_verifier * sc_verifier; /* request */ const nfs4_verifier * sc_verifier; /* request */
unsigned int sc_name_len; unsigned int sc_name_len;
char sc_name[32]; /* request */ char sc_name[48]; /* request */
u32 sc_prog; /* request */ u32 sc_prog; /* request */
unsigned int sc_netid_len; unsigned int sc_netid_len;
char sc_netid[4]; /* request */ char sc_netid[4]; /* request */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment