]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: virsh fallback for snapshot-list --from children
authorEric Blake <eblake@redhat.com>
Thu, 29 Sep 2011 21:57:52 +0000 (15:57 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Oct 2011 23:22:07 +0000 (17:22 -0600)
commit16d7b3908e61e347e55875fb79e97f8d3e4e4fb7
tree2fb49b48523f158a754a913c8677b0dd5c5038ea
parent510823018e8e4f195b54ab6d7fbe31d8e149157a
snapshot: virsh fallback for snapshot-list --from children

Iterating over one level of children requires parsing all snapshots
and their parents; a bit of code shuffling makes it pretty easy
to do this as well.

* tools/virsh.c (cmdSnapshotList): Add another fallback.
tools/virsh.c