summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-09-16 12:28:40 -0400
committerChuck Lever <cel@kernel.org>2026-10-11 23:12:26 -0400
commit14b4db3f33354861fb21eefafdeec6e9fd383dff (patch)
treefa8b5c9dd5d32c3bd0d14e6713079fed1cc3637e /tools/lib/python
parent092ffaedb9f50293c806baf213803b9430e4866c (diff)
downloadlinux-next-14b4db3f33354861fb21eefafdeec6e9fd383dff.tar.gz
linux-next-14b4db3f33354861fb21eefafdeec6e9fd383dff.zip
NFSD: Use xdrgen XDR functions for the NFSv2 ROOT procedure
Hand-written XDR encoders and decoders are difficult to maintain and can diverge from protocol specifications. Migrating to xdrgen-generated code improves type safety and ensures the implementation matches the NFS version 2 protocol specification exactly. Convert the ROOT procedure to use xdrgen_svc_decode_void and xdrgen_svc_encode_void, the built-ins declared in include/linux/sunrpc/xdrgen/_builtins.h. ROOT is obsolete and has neither arguments nor results, so its entry mirrors the NULL procedure. ROOT returns no XDR-encoded data, so pc_xdrressize is set to XDR_void. The argzero field is also set to zero since xdrgen decoders initialize all decoded values. Acked-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260916162859.2051-12-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions