OSDN Git Service

qga-win: Fix QGA VSS Provider service stop failure
authorBasil Salman <bsalman@redhat.com>
Mon, 6 Jul 2020 15:50:39 +0000 (18:50 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 13 Jul 2020 22:13:14 +0000 (17:13 -0500)
commit917ebcb170273913bca33d44263bc5fd14f72fd7
tree51305596915111b86483b4b70eed34dd9ef3e96f
parent20c1df5476e1e9b5d3f5b94f9f3ce01d21f14c46
qga-win: Fix QGA VSS Provider service stop failure

On one hand "guest-fsfreeze-freeze" command, "COM+ System Application service" is
stopped, on the other hand "guest-fsfreeze-thaw" stops QGA VSS Provider service from
"COM+ Application Admin Catalog".
Invoking a series of freeze and thaw commands may result in QGA failing to stop
VSS Provider service as "COM+ System Application service" is stopped, which can
cause some delay in qga response.
In this commit StopService function was changed and VSS Provider service is now
stopped using Winsvc library API.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1549425
Signed-off-by: Basil Salman <bsalman@redhat.com>
Signed-off-by: Basil Salman <basil@daynix.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/vss-win32/install.cpp