[libvirt] [PATCH RFC 3/3] undefine: Add coresponding switches to virsh, for removing storage devices associated with domain
Eric Blake
eblake at redhat.com
Thu Jul 21 17:17:28 UTC 2011
On 07/21/2011 11:11 AM, Daniel P. Berrange wrote:
> It would be best if virsh would print a confirmation for each disk
> removed, so the admin knows whether it succeeded or not
>
> # virsh undefine foo --remove-disk-names=sda,sdc
> Deleted disk /path/to/disk/for/sda
> Failed to delete disk /path/to/disk/for/sdc
Note also that an idea like this is implementable in virsh even without
adding a new flag to the virDomainUndefineFlags API. That is, there's
nothing wrong with a single virsh command making multiple libvirt API
calls to nicely tie together multiple concepts into an easy-to-use UI.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list