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