]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: fix logic bug in qemu undefine
authorEric Blake <eblake@redhat.com>
Wed, 21 Sep 2011 19:08:50 +0000 (13:08 -0600)
committerDaniel Veillard <veillard@redhat.com>
Thu, 22 Sep 2011 05:43:21 +0000 (13:43 +0800)
commite6966fa79abe96edb9b5e9ca238b94f7495966c1
tree60aefb7a43087808f8b39869b8a152afec0c78ad
parenta55f18929bc5c85a02ffb6cab3fb8785b5120f00
snapshot: fix logic bug in qemu undefine

Commit 19f8c98 introduced VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA,
with the intent that omitting the flag makes undefine fail, and
including the flag deletes metadata.  But it used the wrong logic.
Also, hoist the transient domain sooner, so that we don't
accidentally remove metadata of a transient domain.

* src/qemu/qemu_driver.c (qemuDomainUndefineFlags): Check correct
flag value.
src/qemu/qemu_driver.c