File statx.patch of Package qemu

Index: qemu-10.1.2/linux-user/syscall.c
===================================================================
--- qemu-10.1.2.orig/linux-user/syscall.c
+++ qemu-10.1.2/linux-user/syscall.c
@@ -7912,6 +7912,9 @@ static inline abi_long host_to_target_st
     __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: qemu-10.1.2/linux-user/syscall_defs.h
===================================================================
--- qemu-10.1.2.orig/linux-user/syscall_defs.h
+++ qemu-10.1.2/linux-user/syscall_defs.h
@@ -2728,7 +2728,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 */
 };
 
openSUSE Build Service is sponsored by