Skip to content

qga: vss-win32: Fix interference with other VSS requesters

Tomoki Sekiyama qemu-devel 1 version Applied

Status from this message: Thanks, applied to qga tree:

Get series with b4
b4 am 20140113172514.11163.75410.stgit@helix

Versions newest first

  1. v1 Latest3 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and CreateEventqga/vss-win32/provider.cpp qga/vss-win32/requester.cpp+13 -172 replies
2/3qga: vss-win32: Fix interference with snapshot creation by other VSS requestersqga/vss-win32/provider.cpp qga/vss-win32/requester.cpp+36 -272 replies
3/3qga: vss-win32: Fix interference with snapshot deletion by other VSS requestqga/vss-win32/provider.cpp+3 -12 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGal HammerYan Vugenfirer
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qga: vss-win32: Fix interference with other VSS requesters

Current functionarity of qemu-ga VSS provider is limited to implement filesystems freeze, and doesn't support the creation of shadow copies within the guest.
However, when no other hardware snapshot provider is installed, VSS may choose qemu-ga VSS provider to create shadow copies and fail with VSS_E_UNEXPECTED_PROVIDER_ERROR.
Similar issue occurs when the requester deletes shadow copies.

This patchset fix this issue by telling VSS that the volume is not supported by qemu-ga VSS provider when it is kicked by other requesters.

It also fixes wrong error handling around OpenEvent/CreateEvent WinAPI, which returns NULL instead of INVALID_HANDLE_VALUE on errors.

https://bugzilla.redhat.com/show_bug.cgi?id=1036341

---
Tomoki Sekiyama (3):
qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and CreateEvent
qga: vss-win32: Fix interference with snapshot creation by other VSS requesters
qga: vss-win32: Fix interference with snapshot deletion by other VSS request

 qga/vss-win32/provider.cpp  |   21 ++++++++++---
 qga/vss-win32/requester.cpp |   70 ++++++++++++++++++++-----------------------
 2 files changed, 49 insertions(+), 42 deletions(-)
Signature · 1 line
Tomoki Sekiyama