]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
linux: Add STATX_MNT_ID_UNIQUE definition to generic statx
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 3 Oct 2025 19:38:56 +0000 (16:38 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 5 Nov 2025 10:15:52 +0000 (07:15 -0300)
The commit 88a2cf6c4bab6e94a65e9c0db8813709372e9180 added
STATX_MNT_ID_UNIQUE on the statx-generic.h without updating the
generic statx struct.

io/bits/types/struct_statx.h
io/tst-statx.c

index a325edbd11d3aef212713787ec98452bfa63d4cb..36d973779651d32c5c52e95a78e6ed29b3ccfa85 100644 (file)
@@ -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 */
index 989ce91dcc7dc832eae1e3a1b556cb9ac0b90f29..1f7bafb01a3fc8e07c8f4491b74c764a0aa969e7 100644 (file)
@@ -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"