]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga-win: fix "guest-get-fsinfo" wrong filesystem type
authorBasil Salman <bsalman@redhat.com>
Thu, 30 Apr 2020 12:11:40 +0000 (15:11 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 27 Jul 2020 23:03:55 +0000 (18:03 -0500)
commit3aaebc0cce4a4963f331f45643e17266646411e6
treeb85e3880226d5d5facdfea576eb4e52f95726721
parent9303ecb658a0194560d1eecde165a1511223c2d8
qga-win: fix "guest-get-fsinfo" wrong filesystem type

This patch handles the case where unmounted volumes exist,
where in that case GetVolumePathNamesForVolumeName returns
empty path, GetVolumeInformation will use the current working
directory instead.
This patch fixes the issue by opening a handle to the volumes,
and using GetVolumeInformationByHandleW instead.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1746667
Signed-off-by: Basil Salman <bsalman@redhat.com>
Signed-off-by: Basil Salman <basil@daynix.com>
*fix crash when guest_build_fsinfo() sets errp multiple times
*make new error message more distinct from existing ones
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c