Searched hist:"18846 dee1a795b4345ac0bd10b70a3a46fd14287" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff 18846dee1a795b4345ac0bd10b70a3a46fd14287 Tue Jun 29 09:58:30 CDT 2010 Markus Armbruster <armbru@redhat.com> block: Catch attempt to attach multiple devices to a blockdev
For instance, -device scsi-disk,drive=foo -device scsi-disk,drive=foo happily creates two SCSI disks connected to the same block device. It's all downhill from there.
Device usb-storage deliberately attaches twice to the same blockdev, which fails with the fix in place. Detach before the second attach there.
Also catch attempt to delete while a guest device model is attached.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|