Re: [PATCH v2] NFSD: Rework encoding and decoding of nfsd4_deviceid
From: Christoph Hellwig
Date: Tue Jul 22 2025 - 01:37:10 EST
On Mon, Jul 21, 2025 at 05:48:55PM +0300, Sergey Bashirov wrote:
> Compilers may optimize the layout of C structures,
By interpreting the standard in the most hostile way: yes.
In practice: no.
Just about every file system on-disk format and every network wire
protocol depends on the compiler not "optimizing" properly padded
C structures.