uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

MODE SELECT by default shall report invalid_field_in_cdb instead of invalid_command_operation_code #11

Closed uweseimet closed 10 months ago

uweseimet commented 10 months ago

MODE SELECT is only supported for special cases of mode page 3, and only for SCHD and SCMO. In all other cases invalid_command_operation_code is reported. In general scsi2pi cannot meaningfully support MODE SELECT because typically this would require changing a device's behavior. In order to do that, scsi2pi would at least have to persist the selected changes. MODE SELECT is only supported for special cases of mode page 3, and only for SCHD and SCMO. In all other cases invalid_command_operation_code is reported. Reporting invalid_field_in_cdb instead of invalid_command_operation_code might at least improve the compatibility with some computers.