From: Andreas Schwab Date: Mon, 8 Dec 2025 13:40:00 +0000 (+0100) Subject: linux-user: update statx emulation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=344640b4795752a1a19955049e7fef2bb5af2e5d;p=thirdparty%2Fqemu.git linux-user: update statx emulation Signed-off-by: Andreas Schwab Reviewed-by: Laurent Vivier Signed-off-by: Helge Deller --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3601715769..24046c7eeb 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -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); diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index cd9ff709b8..6ae6e1fa13 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -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 */ };