mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
scsi: move type from SCSIGenericState to SCSIDevice
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0d65e1f856
commit
913766563f
3 changed files with 8 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue