]> Git Repo - qemu.git/commit - hw/virtio-blk.c
ide scsi virtio-blk: Reject empty drives unless media is removable
authorMarkus Armbruster <[email protected]>
Tue, 6 Jul 2010 12:37:44 +0000 (14:37 +0200)
committerKevin Wolf <[email protected]>
Tue, 13 Jul 2010 15:48:17 +0000 (17:48 +0200)
commit98f28ad7a7d26e5e77c5cb37b262d76d6ccd963d
treea17198bf6887562708d62a0cf13b17777645cd67
parentd75d25e34e4b4eb6a18122b5fa3baac70cea0f2b
ide scsi virtio-blk: Reject empty drives unless media is removable

Disks without media make no sense.  For SCSI, a Linux guest kernel
complains during boot.  I didn't try other combinations.

scsi-generic doesn't need the additional check, because it already
requires bdrv_is_sg(), which fails without media.

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/ide/core.c
hw/scsi-disk.c
hw/virtio-blk.c
This page took 0.026803 seconds and 4 git commands to generate.