History

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.

J. Bruce Fields committed 20 years ago

Commit 3cedf131 parent 8e037091 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/nfs_xdr.h+1−1
@@ -659,7 +659,7 @@ struct nfs4_rename_res { · 658 unmodified lines
659struct nfs4_setclientid {659struct nfs4_setclientid {
660 const nfs4_verifier * sc_verifier; /* request */660 const nfs4_verifier * sc_verifier; /* request */
661 unsigned int sc_name_len;661 unsigned int sc_name_len;
662 char sc_name[32]; /* request */662 char sc_name[48]; /* request */
663 u32 sc_prog; /* request */663 u32 sc_prog; /* request */
664 unsigned int sc_netid_len;664 unsigned int sc_netid_len;
665 char sc_netid[4]; /* request */665 char sc_netid[4]; /* request */