[PATCH 05/13] linux: Add STATX_MNT_ID_UNIQUE definition to generic statx

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Oct 3 19:38:56 GMT 2025


The commit 4b0860d029f3cd61485d97c3620a5935b398b178 added
STATX_MNT_ID_UNIQUE on the statx-generic.h without updating the
generic statx struct.
---
 io/bits/types/struct_statx.h | 4 +++-
 io/tst-statx.c               | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h
index a325edbd11..36d9737796 100644
--- a/io/bits/types/struct_statx.h
+++ b/io/bits/types/struct_statx.h
@@ -49,7 +49,9 @@ struct statx
   __uint32_t stx_rdev_minor;
   __uint32_t stx_dev_major;
   __uint32_t stx_dev_minor;
-  __uint64_t __statx_pad2[14];
+  __uint64_t stx_mnt_id;
+  __uint64_t __spare2;
+  __uint64_t __statx_pad2[12];
 };
 
 #endif /* __statx_defined */
diff --git a/io/tst-statx.c b/io/tst-statx.c
index 989ce91dcc..1f7bafb01a 100644
--- a/io/tst-statx.c
+++ b/io/tst-statx.c
@@ -37,7 +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) == 144, "statx pad2");
+_Static_assert (offsetof (struct statx, __statx_pad2) == 160, "statx pad2");
 
 #include "statx_generic.c"
 
-- 
2.43.0



More information about the Libc-alpha mailing list