]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: add virsh snapshot-list --tree
authorEric Blake <eblake@redhat.com>
Sat, 24 Sep 2011 23:42:50 +0000 (17:42 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 28 Sep 2011 15:54:57 +0000 (09:54 -0600)
commit1cf0e3db8b7a7a9789d01cc0d4d74607d08dcffd
tree118506811a9540b6a970a5f92bcfe5513926979d
parentd1be48f9761a9300b411e2910990674afd9459c9
snapshot: add virsh snapshot-list --tree

Reuse the tree listing of nodedev-list, coupled with the new helper
function to efficiently grab snapshot parent names, to produce
tree output for a snapshot hierarchy.  For example:

$ virsh snapshot-list dom --tree
root1
 |
  +- sibling1
  +- sibling2
  |   |
  |   +- grandchild
  |
  +- sibling3

root2
 |
  +- child

* tools/virsh.c (cmdSnapshotList): Add --tree.
* tools/virsh.pod (snapshot-list): Document it.
tools/virsh.c
tools/virsh.pod