diff options
Diffstat (limited to 'hw/scsi-disk.c')
-rw-r--r-- | hw/scsi-disk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 522f521649..8f7ffc143d 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -1031,6 +1031,11 @@ static int scsi_disk_initfn(SCSIDevice *dev) } s->bs = s->qdev.conf.dinfo->bdrv; + if (bdrv_is_sg(s->bs)) { + qemu_error("scsi-disk: unwanted /dev/sg*\n"); + return -1; + } + if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM) { s->cluster_size = 4; } else { |