]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: virsh snapshot-list and children
authorEric Blake <eblake@redhat.com>
Thu, 29 Sep 2011 17:51:23 +0000 (11:51 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Oct 2011 23:11:05 +0000 (17:11 -0600)
commitfe383bb541fe73051e6cf1c7551b24affe8c81ea
tree7608ef94a424243324574e7297e2725f80118eb7
parentf2013c9dd1ce468b8620ee35c232a93ef7026fb0
snapshot: virsh snapshot-list and children

Sometimes, we only care about one branch of the snapshot hierarchy.
Make it easier to list a single branch, by using the new APIs.

Technically, I could emulate these new virsh options on old servers
by doing a complete dump, then scraping xml to filter out just the
snapshots that I care about, but I didn't want to do that in this patch.

* tools/virsh.c (cmdSnapshotList): Add --from, --descendants.
* tools/virsh.pod (snapshot-list): Document them.
tools/virsh.c
tools/virsh.pod