]> git.proxmox.com Git - mirror_qemu.git/commit
qga-win: Fix guest-get-fsinfo multi-disks collection
authorPeng Ji <peng.ji@smartx.com>
Wed, 27 Dec 2023 06:32:06 +0000 (14:32 +0800)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Tue, 30 Jan 2024 10:14:11 +0000 (12:14 +0200)
commit7c4486350a79532580a37d42abdeb1dc7e4fa6c9
tree3e3d12ddcb0b8a3666e1698683d0404e9908a454
parent8c72e19bfdf40ed8306769359c2b8902609672c7
qga-win: Fix guest-get-fsinfo multi-disks collection

When a volume has more than one disk, all disks cannot be
returned correctly because there is not enough malloced memory
for disk extents, so before executing DeviceIoControl for the
second time, get the correct size of the required memory space
to store all disk extents.

Details:
https://learn.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-volume_disk_extents

Signed-off-by: Peng Ji <peng.ji@smartx.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-win32.c