]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: implement snapshot children listing in qemu
authorEric Blake <eblake@redhat.com>
Thu, 29 Sep 2011 18:42:36 +0000 (12:42 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Oct 2011 23:31:06 +0000 (17:31 -0600)
commit5907403716c93fbc261f0f1264240e8690943216
tree96141049f45f39f330c960d173368875cbd69bed
parentdb536236f40d7e389f7c29f2b29209e58c91fd03
snapshot: implement snapshot children listing in qemu

Not too hard to wire up.  The trickiest part is realizing that
listing children of a snapshot cannot use SNAPSHOT_LIST_ROOTS,
and that we overloaded that bit to also mean SNAPSHOT_LIST_DESCENDANTS;
we use that bit to decide which iteration to use, but don't want
the existing counting/listing functions to see that bit.

* src/conf/domain_conf.h (virDomainSnapshotObjListNumFrom)
(virDomainSnapshotObjListGetNamesFrom): New prototypes.
* src/conf/domain_conf.c (virDomainSnapshotObjListNumFrom)
(virDomainSnapshotObjListGetNamesFrom): New functions.
* src/libvirt_private.syms (domain_conf.h): Export them.
* src/qemu/qemu_driver.c (qemuDomainSnapshotNumChildren)
(qemuDomainSnapshotListChildrenNames): New functions.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_driver.c