[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 3/5] blockdev: Reject multiple definitions for t
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] Re: [PATCH 3/5] blockdev: Reject multiple definitions for the same drive |
Date: |
Mon, 24 Jan 2011 16:36:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Markus Armbruster <address@hidden> writes:
> Kevin Wolf <address@hidden> writes:
>
>> Am 21.01.2011 17:58, schrieb Markus Armbruster:
>>> Kevin Wolf <address@hidden> writes:
>>>
>>>> Am 17.01.2011 19:31, schrieb Markus Armbruster:
>>>>> For reasons lost in the mist of time, we silently ignore multiple
>>>>> definitions for the same drive:
>>>>>
>>>>> $ qemu-system-x86_64 -nodefaults -vnc :1 -S -monitor stdio -drive
>>>>> if=ide,index=1,file=tmp.qcow2 -drive if=ide,index=1,file=nonexistant
>>>>> QEMU 0.13.50 monitor - type 'help' for more information
>>>>> (qemu) info block
>>>>> ide0-hd1: type=hd removable=0 file=tmp.qcow2 backing_file=tmp.img
>>>>> ro=0 drv=qcow2 encrypted=0
>>>>>
>>>>> With if=none, this can become quite confusing:
>>>>>
>>>>> $ qemu-system-x86_64 -nodefaults -vnc :1 -S -monitor stdio -drive
>>>>> if=none,index=1,file=tmp.qcow2,id=eins -drive
>>>>> if=none,index=1,file=nonexistant,id=zwei -device ide-drive,drive=eins
>>>>> -device ide-drive,drive=zwei
>>>>> qemu-system-x86_64: -device ide-drive,drive=zwei: Property
>>>>> 'ide-drive.drive' can't find value 'zwei'
>>>>>
>>>>> The second -device fails, because it refers to drive zwei, which got
>>>>> silently ignored.
>>>>>
>>>>> Make multiple drive definitions fail cleanly.
>>>>>
>>>>> Signed-off-by: Markus Armbruster <address@hidden>
>>>>
>>>> Dropped this one (and patch 5, which depends on it) from the block
>>>> branch again, it breaks -cdrom and probably other drives which are
>>>> created by default.
>>>
>>> --verbose?
>>>
>>> I was wondering what crap could depend on the crazy silent ignore...
>>
>> Just try using -cdrom and you'll see yourself.
>
> Works for me. Possibly due to some "it's late on Friday" stupidity on
> my part.
Got it: it's my use of -nodefaults. I hardly ever use QEMU without
it...
Thanks!
[...]
[Qemu-devel] [PATCH 2/5] blockdev: Make drive_init() use error_report(), Markus Armbruster, 2011/01/17
[Qemu-devel] [PATCH 5/5] blockdev: Fix drive_add for drives without media, Markus Armbruster, 2011/01/17
Re: [Qemu-devel] [PATCH 0/5] -drive/drive_add fixes, Stefan Hajnoczi, 2011/01/21
[Qemu-devel] Re: [PATCH 0/5] -drive/drive_add fixes, Kevin Wolf, 2011/01/21