]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFS: fix open_owner_id_maxsz and related fields.
authorNeilBrown <neilb@suse.de>
Wed, 4 Dec 2024 02:53:09 +0000 (13:53 +1100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 17 Mar 2025 20:51:53 +0000 (16:51 -0400)
commit43502f6e8d1e767d6736ea0676cc784025cf6eeb
tree141320b014ab33754f5a7c52f1eb30d59fdbe877
parente767b59e29b8327d25edde65efc743f479f30d0a
NFS: fix open_owner_id_maxsz and related fields.

A recent change increased the size of an NFSv4 open owner, but didn't
increase the corresponding max_sz defines.  This is not know to have
caused failure, but should be fixed.

This patch also fixes some relates _maxsz fields that are wrong.

Note that the XXX_owner_id_maxsz values now are only the size of the id
and do NOT include the len field that will always preceed the id in xdr
encoding.  I think this is clearer.

Reported-by: David Disseldorp <ddiss@suse.com>
Fixes: d98f72272500 ("nfs: simplify and guarantee owner uniqueness.")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4xdr.c