diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-11-26 15:33:54 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:36 -0600 |
commit | 913766563fbd6faa17635fd802e83383e0224289 (patch) | |
tree | 0b0c08bb55c913f36023c55b699f7fd70ef7db23 /hw/scsi-disk.c | |
parent | 0d65e1f856d6f5bd00cb90bcc394fbe95fe5d244 (diff) |
scsi: move type from SCSIGenericState to SCSIDevice
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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) |