Re: [libvirt] [PATCHv2 02/26] snapshot: better event when reverting qemu to paused snapshot

2011-08-24 Thread Daniel P. Berrange
On Wed, Aug 24, 2011 at 08:23:55AM -0600, Eric Blake wrote: > On 08/24/2011 08:21 AM, Daniel P. Berrange wrote: > >>+++ b/src/qemu/qemu_driver.c > >>@@ -8804,14 +8804,16 @@ static int > >>qemuDomainRevertToSnapshot(virDomainSnapshotPtr snapshot, > >> QEMU_ASYN

Re: [libvirt] [PATCHv2 02/26] snapshot: better event when reverting qemu to paused snapshot

2011-08-24 Thread Eric Blake
On 08/24/2011 08:21 AM, Daniel P. Berrange wrote: +++ b/src/qemu/qemu_driver.c @@ -8804,14 +8804,16 @@ static int qemuDomainRevertToSnapshot(virDomainSnapshotPtr snapshot, QEMU_ASYNC_JOB_NONE); if (rc< 0) goto endjob; +

Re: [libvirt] [PATCHv2 02/26] snapshot: better event when reverting qemu to paused snapshot

2011-08-24 Thread Daniel P. Berrange
On Mon, Aug 15, 2011 at 05:33:13PM -0600, Eric Blake wrote: > When reverting a running domain to a paused snapshot, the event > that fires should mention that the domain is suspended. > > * include/libvirt/libvirt.h.in > (VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT): New sub-event. > * src/qemu/qemu_

[libvirt] [PATCHv2 02/26] snapshot: better event when reverting qemu to paused snapshot

2011-08-15 Thread Eric Blake
When reverting a running domain to a paused snapshot, the event that fires should mention that the domain is suspended. * include/libvirt/libvirt.h.in (VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT): New sub-event. * src/qemu/qemu_driver.c (qemuDomainRevertToSnapshot): Use it. --- include/libvirt/libv