From: Adhemerval Zanella Date: Fri, 3 Oct 2025 19:39:00 +0000 (-0300) Subject: linux: Update statx-generic.h with linux 6.14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf73362a7e47a0c107bfd6fc386ac5a387c4c2f0;p=thirdparty%2Fglibc.git linux: Update statx-generic.h with linux 6.14 It adds the new constant STATX_DIO_READ_ALIGN and related fields in generic statx struct from Linux commit 7ed6cbe0f8caa6ee38a2dc8f1b925acb904cc01f. Reviewed-by: Carlos O'Donell --- diff --git a/io/bits/statx-generic.h b/io/bits/statx-generic.h index 779f52cded..0ce9e40b51 100644 --- a/io/bits/statx-generic.h +++ b/io/bits/statx-generic.h @@ -45,6 +45,7 @@ # define STATX_MNT_ID_UNIQUE 0x4000U # define STATX_SUBVOL 0x8000U # define STATX_WRITE_ATOMIC 0x00010000U +# define STATX_DIO_READ_ALIGN 0x00020000U # define STATX__RESERVED 0x80000000U # define STATX_ATTR_COMPRESSED 0x0004 diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index 2cd81c112b..aa862113cd 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -56,8 +56,8 @@ struct statx __uint32_t stx_atomic_write_unit_min; __uint32_t stx_atomic_write_unit_max; __uint32_t stx_atomic_write_segments_max; - __uint32_t __statx_pad2; - __uint64_t __statx_pad3[9]; + __uint32_t stx_dio_read_offset_align; + __uint64_t __statx_pad2[9]; }; #endif /* __statx_defined */ diff --git a/io/tst-statx.c b/io/tst-statx.c index d691d157e0..465bc616d5 100644 --- a/io/tst-statx.c +++ b/io/tst-statx.c @@ -37,8 +37,7 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink"); _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino"); _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime"); _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev"); -_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb4, "statx pad2"); -_Static_assert (offsetof (struct statx, __statx_pad3) == 0xb8, "statx pad3"); +_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb8, "statx pad2"); #include "statx_generic.c"