]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
snapshot: wire up qemu transaction command
authorEric Blake <eblake@redhat.com>
Sat, 17 Mar 2012 20:16:25 +0000 (14:16 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 23 Mar 2012 22:38:20 +0000 (16:38 -0600)
commit0436d328f524230e5c84c69d714963335d374fe2
tree780b6665ce9cc30e6ebdcc885b08308782b2a0eb
parent64d5e815b71bf75e78376ff2b7cac7f16dc95107
snapshot: wire up qemu transaction command

The hardest part about adding transactions is not using the new
monitor command, but undoing the partial changes we made prior
to a failed transaction.

* src/qemu/qemu_driver.c (qemuDomainSnapshotCreateDiskActive): Use
transaction when available.
(qemuDomainSnapshotUndoSingleDiskActive): New function.
(qemuDomainSnapshotCreateSingleDiskActive): Pass through actions.
(qemuDomainSnapshotCreateXML): Adjust caller.
src/qemu/qemu_driver.c