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

Peter Krempa pkrempa at redhat.com
Thu Jul 26 11:03:26 UTC 2012


On 07/23/12 23:23, Eric Blake wrote:
> On 06/22/2012 09:21 AM, 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(-)
>

Thanks, I rebased this onto Osier's splitting patches and pushed.

Peter




More information about the libvir-list mailing list