]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: update statx emulation
authorAndreas Schwab <schwab@suse.de>
Mon, 8 Dec 2025 13:40:00 +0000 (14:40 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 23 Jan 2026 19:40:15 +0000 (20:40 +0100)
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Helge Deller <deller@gmx.de>
linux-user/syscall.c
linux-user/syscall_defs.h

index 3601715769090a0655b135e3cdf0811d1a0f29a3..24046c7eeb7f151de110d8b087aaef66e3544924 100644 (file)
@@ -7882,6 +7882,9 @@ static inline abi_long host_to_target_statx(struct target_statx *host_stx,
     __put_user(host_stx->stx_rdev_minor, &target_stx->stx_rdev_minor);
     __put_user(host_stx->stx_dev_major, &target_stx->stx_dev_major);
     __put_user(host_stx->stx_dev_minor, &target_stx->stx_dev_minor);
+    __put_user(host_stx->stx_mnt_id, &target_stx->stx_mnt_id);
+    __put_user(host_stx->stx_dio_mem_align, &target_stx->stx_dio_mem_align);
+    __put_user(host_stx->stx_dio_offset_align, &target_stx->stx_dio_offset_align);
 
     unlock_user_struct(target_stx, target_addr, 1);
 
index cd9ff709b876b88c126c371a4fb835c7e24e9491..6ae6e1fa13971bf2533b2f33c2a34a9ec77d1711 100644 (file)
@@ -2734,7 +2734,11 @@ struct target_statx {
     abi_uint stx_dev_major; /* ID of device containing file [uncond] */
     abi_uint stx_dev_minor;
     /* 0x90 */
-    abi_ullong __spare2[14]; /* Spare space for future expansion */
+    abi_ullong stx_mnt_id;
+    abi_uint stx_dio_mem_align;
+    abi_uint stx_dio_offset_align;
+    /* 0xa0 */
+    abi_ullong __spare2[12]; /* Spare space for future expansion */
     /* 0x100 */
 };