]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't return success if creation of snapshot save file fails
authorPeter Krempa <pkrempa@redhat.com>
Thu, 17 Jan 2013 13:04:01 +0000 (14:04 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 21 Jan 2013 10:48:45 +0000 (11:48 +0100)
commit27054e1217e2787b1806f55c5f6eb8908612d690
tree79925366b543ac601caa17982ee8f739a7b68a16
parent31bee8572ff86c83ca476f5b82f5d991774d82cb
qemu: Don't return success if creation of snapshot save file fails

When the snapshot definition can't be saved, the
qemuDomainSnapshotCreate function succeeded without filling some of the
fields in the internal definition.

This patch removes the snapshot and returns failure if the XML file
cannot be written.
src/qemu/qemu_driver.c