diff options
| author | Sergey Bashirov <sergeybashirov@gmail.com> | 2025-07-21 17:48:55 +0300 | 
|---|---|---|
| committer | Chuck Lever <chuck.lever@oracle.com> | 2025-09-21 19:24:50 -0400 | 
| commit | 832738e4b325b742940761e10487403f9aad13e8 (patch) | |
| tree | 9a518b50759a4abbc794bb3c6169373bd5716002 /rust/helpers/platform.c | |
| parent | c97b737ef8f10f28424822c139e3b22b9e9bcc2b (diff) | |
NFSD: Rework encoding and decoding of nfsd4_deviceid
Compilers may optimize the layout of C structures, so we should not rely
on sizeof struct and memcpy to encode and decode XDR structures. The byte
order of the fields should also be taken into account.
This patch adds the correct functions to handle the deviceid4 structure
and removes the pad field, which is currently not used by NFSD, from the
runtime state. The server's byte order is preserved because the deviceid4
blob on the wire is only used as a cookie by the client.
Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
