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

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

index 11c7a68a50893b8eabd04172f788dcbe6da3044f..0f5ee461fc2277f9af8d9672439ebfe77dfc41a3 100644 (file)
@@ -52,7 +52,8 @@ struct statx
   __uint64_t stx_mnt_id;
   __uint32_t stx_dio_mem_align;
   __uint32_t stx_dio_offset_align;
-  __uint64_t __statx_pad2[12];
+  __uint64_t stx_subvol;
+  __uint64_t __statx_pad2[11];
 };
 
 #endif /* __statx_defined */
index 1f7bafb01a3fc8e07c8f4491b74c764a0aa969e7..c7a5707c7af0d74fd0e793b5d2944e4441e71a1c 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) == 160, "statx pad2");
+_Static_assert (offsetof (struct statx, __statx_pad2) == 168, "statx pad2");
 
 #include "statx_generic.c"