Markus Armbruster 4e5d9b578f blockdev: Reject multiple definitions for the same drive
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.

Unfortunately, there's code that relies on multiple drive definitions
being silently ignored: main() merrily adds default drives even when
the user already defined these drives.  Fix that up.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-01-31 11:22:37 +01:00
2011-01-25 19:56:53 +03:00
2011-01-29 22:52:00 +00:00
2011-01-30 13:10:10 +00:00
2010-12-09 14:23:24 +01:00
2011-01-29 22:52:00 +00:00
2011-01-21 23:12:42 +01:00
2011-01-29 22:52:33 +00:00
2011-01-25 09:18:00 +01:00
2011-01-25 09:18:00 +01:00
2011-01-31 11:17:07 +01:00
2011-01-10 10:55:10 +01:00
2010-12-02 21:13:39 +02:00
2010-11-01 00:54:06 +03:00
2011-01-20 20:58:56 +00:00
2011-01-29 22:52:00 +00:00
2011-01-04 21:58:24 +01:00
2011-01-16 08:32:27 +00:00
2011-01-20 20:54:21 +00:00
2010-11-21 09:16:57 -06:00
2010-11-21 09:16:57 -06:00
2010-11-21 09:16:57 -06:00
2011-01-20 20:54:21 +00:00
2011-01-24 11:08:51 +01:00
2011-01-24 20:54:34 +00:00
2011-01-17 18:22:17 +02:00
2010-12-09 14:23:24 +01:00
2010-10-30 08:02:40 +00:00
2010-11-17 09:52:24 -02:00
2010-11-17 09:52:24 -02:00
2010-12-11 21:32:47 +00:00
2011-01-20 20:54:21 +00:00
2011-01-31 10:03:00 +01:00
2011-01-09 20:59:53 +00:00
2011-01-20 20:54:21 +00:00
2011-01-25 09:18:00 +01:00
2011-01-24 20:54:34 +00:00
2011-01-09 14:43:33 +00:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%