[libvirt] [PATCH] virsh: Check for existence of storage before undefining the domain

Peter Krempa pkrempa at redhat.com
Mon Jul 23 12:26:00 UTC 2012


On 06/22/12 17:21, Peter Krempa wrote:
> When undefining a domain and removing associated storage using "virsh
> undefine --storage" the domain was at first undefined and after that the
> storage removal proces was started. If the user specified an invalid
> disk to remove, the error could not be corrected.
>
> This patch moves enumeration and filtering of volumes that should be
> removed before the domain is undefined, but the removal process is still
> kept after the domain has been undefined.
> ---
>   tools/virsh.c |  280 +++++++++++++++++++++++++++++----------------------------
>   1 files changed, 144 insertions(+), 136 deletions(-)
>

Ping




More information about the libvir-list mailing list