]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: support new undefine flags in qemu
authorEric Blake <eblake@redhat.com>
Fri, 12 Aug 2011 16:20:24 +0000 (10:20 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 3 Sep 2011 03:57:34 +0000 (21:57 -0600)
commit19f8c980efbbb7cf01e7f5059c9521c8dc5799ec
tree1dad2b2f32a84bce3159a46a689db4d3cbb630ec
parent3881a470881b9bf48e92752236e2d28070e7c730
snapshot: support new undefine flags in qemu

A nice benefit of deleting all snapshots at undefine time is that
you don't have to do any reparenting or subtree identification - since
everything goes, this is an O(n) process, whereas using multiple
virDomainSnapshotDelete calls would be O(n^2) or worse.  But it is
only doable for snapshot metadata, where we are in control of the
data being deleted; for the actual snapshots, there's too much
likelihood of something going wrong, and requiring even more API
calls to figure out what failed in the meantime, so callers are
better off deleting the snapshot data themselves one snapshot at
a time where they can deal with failures as they happen.

* src/qemu/qemu_driver.c (qemuDomainUndefineFlags): Honor new flags.
src/qemu/qemu_driver.c