mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
qga: vss-win32: Fix interference with snapshot deletion by other VSS request
When a VSS requester such as vshadow.exe or diskshadow.exe requests to delete snapshots, qemu-ga VSS provider's DeleteSnapshots() is also called and returns E_NOTIMPL, that makes the deletion fail. To avoid this issue, return S_OK and set values that represent no snapshots are deleted by qemu-ga VSS provider. 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>
This commit is contained in:
parent
ff8adbcfdb
commit
d9e1f574cb
1 changed files with 3 additions and 1 deletions
|
@ -278,7 +278,9 @@ STDMETHODIMP CQGAVssProvider::DeleteSnapshots(
|
||||||
VSS_ID SourceObjectId, VSS_OBJECT_TYPE eSourceObjectType,
|
VSS_ID SourceObjectId, VSS_OBJECT_TYPE eSourceObjectType,
|
||||||
BOOL bForceDelete, LONG *plDeletedSnapshots, VSS_ID *pNondeletedSnapshotID)
|
BOOL bForceDelete, LONG *plDeletedSnapshots, VSS_ID *pNondeletedSnapshotID)
|
||||||
{
|
{
|
||||||
return E_NOTIMPL;
|
*plDeletedSnapshots = 0;
|
||||||
|
*pNondeletedSnapshotID = SourceObjectId;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
STDMETHODIMP CQGAVssProvider::BeginPrepareSnapshot(
|
STDMETHODIMP CQGAVssProvider::BeginPrepareSnapshot(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue