qemu-patch-raspberry4/qga/vss-win32
Tomoki Sekiyama ff8adbcfdb qga: vss-win32: Fix interference with snapshot creation by other VSS requesters
When a VSS requester such as vshadow.exe or diskshadow.exe requests to
create disk snapshots, Windows may choose qemu-ga VSS provider if it is
only provider registered on the system. However, because it provides only a
function to freeze the filesystem, the snapshotting fails.

This patch adds a check into CQGAVssProvider::IsVolumeSupported() to reject
the request from other VSS requesters, so that the other provider is chosen.

The check of requester is done by confirming event channels between
qemu-ga's requester and provider established. To ensure that the events are
initialized when CQGAVssProvider::IsVolumeSupported() is called, it moves
the initialization earlier.

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Reviewed-by: Gal Hammer <ghammer@redhat.com>
Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-02-23 13:11:26 -06:00
..
install.cpp qemu-ga: vss-win32: Install VSS provider COM+ application service 2013-11-22 15:14:05 -06:00
Makefile.objs qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
provider.cpp qga: vss-win32: Fix interference with snapshot creation by other VSS requesters 2014-02-23 13:11:26 -06:00
qga-vss.def qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
qga-vss.idl qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
qga-vss.tlb qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
requester.cpp qga: vss-win32: Fix interference with snapshot creation by other VSS requesters 2014-02-23 13:11:26 -06:00
requester.h qga: Fix compilation for old versions of MinGW 2013-11-13 15:59:06 +04:00
vss-common.h qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00