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

s2pexec: Return sense key and ASC as exit status #51

Closed uweseimet closed 7 months ago

uweseimet commented 7 months ago

In order to improve scripting support s2pexec shall return the error status of a command as exit status. The meaning of the exit status:

uweseimet commented 7 months ago

The exit status only has 8 bits, i.e. it cannot represent both sense key and ASC. Thus only the ASC value will be used.