]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: implement LIST_LEAVES flag in qemu
authorEric Blake <eblake@redhat.com>
Sat, 8 Oct 2011 01:57:39 +0000 (19:57 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 12 Oct 2011 22:09:20 +0000 (16:09 -0600)
commit5cf56c4b23125e27fad481c67b540689ad4adcd8
tree2a8309c8d95133eaec5cc52960e2b41d85577d7d
parent8b6d1a20685764b8bdb4b921ffcbaf982d3c07e6
snapshot: implement LIST_LEAVES flag in qemu

With the recent refactoring of qemu snapshot relationships, it
is now trivial to filter on leaves.

* src/conf/domain_conf.c (virDomainSnapshotObjListCount)
(virDomainSnapshotObjListCopyNames): Handle new flag.
* src/qemu/qemu_driver.c (qemuDomainSnapshotListNames)
(qemuDomainSnapshotNum, qemuDomainSnapshotListChildrenNames)
(qemuDomainSnapshotNumChildren): Pass new flag through.
src/conf/domain_conf.c
src/qemu/qemu_driver.c