blockdev: Make drive_add() take explicit type, index parameters
commit2292ddaeab3467c68efd9e07e17ca0c9fc510fdc
authorMarkus Armbruster <armbru@redhat.com>
Fri, 28 Jan 2011 10:21:41 +0000 (28 11:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:59:09 +0000 (31 10:59 +0100)
tree7977bb2762dc972c8bbf4e2f20d0c034a6772839
parent27d6bf40edc346a61ade6d4c5d4f27f6b40acc81
blockdev: Make drive_add() take explicit type, index parameters

Before, type & index were hidden in printf-like fmt, ... parameters,
which get expanded into an option string.  Rather inconvenient for
uses later in this series.

New IF_DEFAULT to ask for the machine's default interface.  Before,
that was done by having no option "if" in the option string.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
blockdev.h
hw/device-hotplug.c
vl.c