]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: identify which snapshots have metadata
authorEric Blake <eblake@redhat.com>
Fri, 12 Aug 2011 14:51:15 +0000 (08:51 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 2 Sep 2011 22:58:36 +0000 (16:58 -0600)
commit9f5e53e2114628beabaa26d543c9e8947db5fa24
tree4917548604bca02af665d1a3b08ecf7857107eef
parent7afa6b4129615dbe73c91f6fe47de3725cb02613
snapshot: identify which snapshots have metadata

To make it easier to know when undefine will fail because of existing
snapshot metadata, we need to know how many snapshots have metadata.

Also, it is handy to filter the list of snapshots to just those that
have no parents; document that flag now, but implement it in later patches.

* include/libvirt/libvirt.h.in (VIR_DOMAIN_SNAPSHOT_LIST_ROOTS)
(VIR_DOMAIN_SNAPSHOT_LIST_METADATA): New flags.
* src/libvirt.c (virDomainSnapshotNum)
(virDomainSnapshotListNames): Document them.
* src/esx/esx_driver.c (esxDomainSnapshotNum)
(esxDomainSnapshotListNames): Implement trivial flag.
* src/vbox/vbox_tmpl.c (vboxDomainSnapshotNum)
(vboxDomainSnapshotListNames): Likewise.
* src/qemu/qemu_driver.c (qemuDomainSnapshotNum)
(qemuDomainSnapshotListNames): Likewise.
include/libvirt/libvirt.h.in
src/esx/esx_driver.c
src/libvirt.c
src/qemu/qemu_driver.c
src/vbox/vbox_tmpl.c