Re: [PATCH RFC] statx.2: Add stx_atomic_write_unit_max_opt

Christoph Hellwig
2025-03-23T06:40:33Z

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?