• E
    snapshot: implement snapshot children listing in qemu · 59074037
    Eric Blake 提交于
    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.
    59074037
libvirt_private.syms 26.3 KB