qga-win: don't hang if vss hold writes timeout
authorChen Hanxiao <chenhanxiao@gmail.com>
Tue, 17 Oct 2017 06:41:42 +0000 (14:41 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Oct 2017 22:12:26 +0000 (17:12 -0500)
commit4d80d20fe12248956c07587376f5b5a741f74aa2
treebfd488a356100a92e9b1cc77bf0aa0393c8da593
parentae49fbbcd8e4e9d8bf7131add34773f579e1aff7
qga-win: don't hang if vss hold writes timeout

When VM is in a heavy IO, if the command "guest-fsfreeze-freeze"
is executed, VSS may timeout when trying to hold writes.

Inside guest, Event ID 12298(VSS_ERROR_HOLD_WRITES_TIMEOUT)
is logged in the Event Viewer.

At that time, if we call AbortBackup, qga may hang forever.

This patch will solve this issue.

Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/vss-win32/requester.cpp