piscsi: LUN requires deprecated LUN field and does not evaluate the LUN in the IDENTIFY message
This ticket results from https://github.com/akuker/RASCSI/issues/309.
The LUN field (bits in byte 1 in the CDB) was deprecated in the SCSI standard long ago. The LUN has to be selected by an IDENTIFY message instead. Rascsi ignores the LUN in the IDENTIFY message and always expects the LUN in the CDB. This is not compliant to SCSI and causes the issue reported in https://github.com/akuker/RASCSI/issues/309.
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] Message code IDENTIFY $C3
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Phase
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Byte 0: $12
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Byte 1: $00
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Byte 2: $00
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Byte 3: $00
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Byte 4: $FF
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SASIDEV::Command() Command Byte 5: $00
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [trace] virtual void SCSIDEV::Execute() Execution phase command $12
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.648] [debug] ++++ CMD ++++ virtual void SCSIDEV::Execute() Executing command $12
Oct 11 21:00:07 raspberrypi RASCSI[432]: [2021-10-11 21:00:07.649] [debug] virtual bool Disk::Dispatch(SCSIDEV*) Executing Inquiry ($12)
The command above has to be executed for LUN 3, but rascsi executes it for LUN 0.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 45 (45 by maintainers)
… and for my final party trick - here is the system with 32 LUNs mounted. (4 IDs x 8 LUNs)
Pretty impressive!