Re: [PATCH RFC] statx.2: Add stx_atomic_write_unit_max_opt
From: Christoph Hellwig
Date: Sun Mar 23 2025 - 02:40:45 EST
On Fri, Mar 21, 2025 at 10:20:21AM +0000, John Garry wrote:
> Coming back to what was discussed about not adding a new flag to fetch this
> limit:
>
> > Does that actually work? Can userspace assume all unknown statx
> > fields are padded to zero?
>
> In cp_statx, we do pre-zero the statx structure. As such, the rule "if
> zero, just use hard limit unit max" seems to hold.
Ok, canwe document this somewhere?