[libvirt] [PATCHv2 1/4] snapshot: add two more filter sets to API
Peter Krempa
pkrempa at redhat.com
Mon Nov 19 10:59:10 UTC 2012
On 11/15/12 00:36, Eric Blake wrote:
> As we enable more modes of snapshot creation, it becomes more important
> to be able to quickly filter based on snapshot properties. This patch
> introduces new filter flags; subsequent patches will introduce virsh
> back-compat filtering, as well as actual libvirt filtering.
>
> * include/libvirt/libvirt.h.in (virDomainSnapshotListFlags): Add
> five new flags in two new groups.
> * src/libvirt.c (virDomainSnapshotNum, virDomainSnapshotListNames)
> (virDomainListAllSnapshots, virDomainSnapshotNumChildren)
> (virDomainSnapshotListChildrenNames)
> (virDomainSnapshotListAllChildren): Document them.
> * src/conf/snapshot_conf.h (VIR_DOMAIN_SNAPSHOT_FILTERS_STATUS)
> (VIR_DOMAIN_SNAPSHOT_FILTERS_LOCATION): Add new convenience filter
> collection macros.
> * tools/virsh-snapshot.c (cmdSnapshotList): Add 5 new flags.
> * tools/virsh.pod (snapshot-list): Document them.
> ---
> include/libvirt/libvirt.h.in | 19 ++++++++++++++
> src/conf/snapshot_conf.h | 9 +++++++
> src/libvirt.c | 60 ++++++++++++++++++++++++++++++++++++++++++++
> tools/virsh-snapshot.c | 46 ++++++++++++++++++++-------------
> tools/virsh.pod | 17 ++++++++++++-
> 5 files changed, 132 insertions(+), 19 deletions(-)
>
ACK.
Peter
More information about the libvir-list
mailing list