diff options
Diffstat (limited to 'hw/scsi-disk.c')
-rw-r--r-- | hw/scsi-disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index b0eceaf094..6b5674b8ad 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -938,6 +938,7 @@ static int scsi_disk_initfn(SCSIDevice *dev) s->cluster_size = 1; } s->qdev.blocksize = 512 * s->cluster_size; + s->qdev.type = TYPE_DISK; bdrv_get_geometry(s->dinfo->bdrv, &nb_sectors); nb_sectors /= s->cluster_size; if (nb_sectors) |