qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] uninit drive if drive_init failed


From: Wen Congyang
Subject: Re: [Qemu-devel] [PATCH] uninit drive if drive_init failed
Date: Wed, 16 Feb 2011 17:58:58 +0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4

At 02/16/2011 05:45 PM, Markus Armbruster Write:
> Wen Congyang <address@hidden> writes:
> 
>> steps to reproduce this bug:
>> 1. virsh attach-disk domain --source imagefile --target sdb --sourcetype 
>> file --driver qemu --subdriver qcow2
>> error: Failed to attach disk
>> error: operation failed: adding 
>> scsi-disk,bus=scsi0.0,scsi-id=1,drive=drive-scsi0-0-1,id=scsi0-0-1 device 
>> failed: Property 'scsi-disk.drive' can't find value 'drive-scsi0-0-1'
>>
>> 2. virsh attach-disk domain --source imagefile --target sdb --sourcetype 
>> file --driver qemu --subdriver raw
>> error: Failed to attach disk
>> error: operation failed: adding 
>> scsi-disk,bus=scsi0.0,scsi-id=1,drive=drive-scsi0-0-1,id=scsi0-0-1 device 
>> failed: Property 'scsi-disk.drive' can't find value 'drive-scsi0-0-1'
>>
>> The format of disk image file is raw.
>> If we run comand 2 only, we will attach the disk successfully.
>>
>> The reason of this bug is that: we do not remove dinfo from drives and 
>> dinfo->bdrv from bdrv_states
>> if we open the disk image file failed.
>>
>> Signed-off-by: Wen Congyang <address@hidden>
> 
> Already fixed in Kevin's block tree and 0.14-rc2 (commit 08931947),
> although not yet in stable.

I only use master tree and do not notice that this bug has been fixed.
Thank you for pointing it out.

> 
> Thanks anyway!
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]