mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
scsi: move max_lba to SCSIDevice
The field is only in scsi-disk for now. Moving it up to SCSIDevice makes it easier to reuse the scsi-generic reqops elsewhere. At the same time, make scsi-generic get max_lba from snooped READ CAPACITY commands as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
e39be48232
commit
7877903aa0
3 changed files with 10 additions and 8 deletions
|
@ -70,6 +70,7 @@ struct SCSIDevice
|
|||
uint32_t lun;
|
||||
int blocksize;
|
||||
int type;
|
||||
uint64_t max_lba;
|
||||
};
|
||||
|
||||
/* cdrom.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue