mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
scsi: push lun field to SCSIDevice
This will let SCSIBus detect requests sent to an invalid LUN, and handle them itself. However, there will be still support for only one LUN per target Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
2599aece1b
commit
87dcd1b2c2
3 changed files with 3 additions and 4 deletions
|
@ -65,6 +65,7 @@ struct SCSIDevice
|
|||
uint8_t sense[SCSI_SENSE_BUF_SIZE];
|
||||
uint32_t sense_len;
|
||||
QTAILQ_HEAD(, SCSIRequest) requests;
|
||||
uint32_t lun;
|
||||
int blocksize;
|
||||
int type;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue