]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: add virsh domblklist command
authorEric Blake <eblake@redhat.com>
Sat, 20 Aug 2011 13:04:24 +0000 (07:04 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 5 Sep 2011 13:03:04 +0000 (07:03 -0600)
commit88a993b129436d2c2eef7b9519b55c5a42e4db66
treee8bd0437353b3c1381929faf5145b15f050503c5
parent89b6284fd94ce5b13ee6b002f9167f5d9074aa7a
snapshot: add virsh domblklist command

This adds a convenience function to virsh that parses out block
information from the domain xml, making it much easier to see
what strings can be used in all other contexts that demand a
specific block name, especially when given the previous patch
that allows using either target or unique source name.

As an example on a domain with one disk and an empty cdrom drive:

Target     Source
-------------------------------------------
vda        /var/lib/libvirt/images/fedora_12.img
hdc        -

* tools/virsh.c (cmdDomblklist): New function.
* tools/virsh.pod (domblklist): Document it.
tools/virsh.c
tools/virsh.pod