]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: virsh fallback for snapshot-list --tree --from
authorEric Blake <eblake@redhat.com>
Thu, 29 Sep 2011 21:18:50 +0000 (15:18 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Oct 2011 23:19:11 +0000 (17:19 -0600)
commit510823018e8e4f195b54ab6d7fbe31d8e149157a
tree1bef1dd4c47f9fb2d8758760abda2f0ca545d97f
parentfe383bb541fe73051e6cf1c7551b24affe8c81ea
snapshot: virsh fallback for snapshot-list --tree --from

Emulating --from requires grabbing the entire list of snapshots
and their parents, and recursively iterating over the list from
the point of interest - but we already do that for --tree.  This
turns on emulation for that situation.

* tools/virsh.c (__vshControl): Rename member.
(vshReconnect, cmdConnect, vshGetSnapshotParent): Update clients.
(cmdSnapshotList): Add fallback.
tools/virsh.c