diff options
| author | Markus Armbruster | 2011-01-28 11:21:36 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2011-01-31 10:03:00 +0100 |
| commit | 31e1ea3ee7d05ab1aa134fe07a8f33b42417641f (patch) | |
| tree | 1ed1137e0df6b3bb62e7e5894f04530d5aefd2fb /blockdev.c | |
| parent | raw-win32: Fix bdrv_flush return value (diff) | |
| download | qemu-31e1ea3ee7d05ab1aa134fe07a8f33b42417641f.tar.gz qemu-31e1ea3ee7d05ab1aa134fe07a8f33b42417641f.tar.xz qemu-31e1ea3ee7d05ab1aa134fe07a8f33b42417641f.zip | |
scsi hotplug: Set DriveInfo member bus correctly
drive_init() picks the first free bus and unit number, unless the user
specifies them.
This isn't a good fit for the drive_add monitor command, because there
we specify the controller by PCI address instead of using bus number
set by drive_init().
scsi_hot_add() takes care to replace the unit number set by
drive_init() by the real one, but it neglects to replace the bus
number. Thus, bus/unit in DriveInfo may be bogus. Affects
drive_get() and drive_get_max_bus(). I'm not aware of anything bad
happening because of that; looks like by the time we're hot-plugging,
the two functions aren't used anymore. Fix it anyway.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions
