[libvirt] [PATCH] protect the scsi controller to be deleted when it is in use

Eric Blake eblake at redhat.com
Mon Feb 21 17:40:35 UTC 2011


On 02/21/2011 10:00 AM, Daniel P. Berrange wrote:
> On Mon, Feb 21, 2011 at 03:35:52PM +0800, Wen Congyang wrote:
>> Steps to reproduce this bug:
>> 1. virsh attach-disk domain --source imagefile --target sdb --sourcetype file --driver qemu --subdriver raw
>> 2. virsh detach-device controller.xml # remove scsi controller 0
>> 3. virsh detach-disk domain sdb
>>    error: Failed to detach disk
>>    error: operation failed: detaching scsi0-0-1 device failed: Device 'scsi0-0-1' not found
>>
>> I think we should not detach a controller when it is used by some other device.
>>
>> Signed-off-by: Wen Congyang <wency at cn.fujitsu.com>
> 
> ACK, this looks like a good idea.

Pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110221/44a49f30/attachment-0001.sig>


More information about the libvir-list mailing list