Skip to content

Added command byte count to SCSI command mapping#966

Merged
uweseimet merged 12 commits intodevelopfrom
feature-byte-count-mapping
Nov 6, 2022
Merged

Added command byte count to SCSI command mapping#966
uweseimet merged 12 commits intodevelopfrom
feature-byte-count-mapping

Conversation

@uweseimet
Copy link
Copy Markdown
Contributor

@uweseimet uweseimet commented Nov 4, 2022

I also re-added a missing "exit" line in the TerminationHandler, which by accident I removed in the last PR.

There is one change related to the handling of unknown SCSI commands: These are not dispatched anymore (commands not contained in the command mapping can never be known by any device anyway), but the controller immediately reports an error. This improves the handling of unknown command opcodes: Previously for unknown commands a 6 byte command count was assumed, even though an unknown SCSI command can have any byte count. This change might improve the compatibility to clients which send commands (with a byte count > 6) rascsi does not support.

@uweseimet uweseimet marked this pull request as ready for review November 4, 2022 10:48
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Nov 4, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

40.0% 40.0% Coverage
0.0% 0.0% Duplication

@uweseimet uweseimet merged commit 1cae530 into develop Nov 6, 2022
@uweseimet uweseimet deleted the feature-byte-count-mapping branch November 6, 2022 18:44
akuker pushed a commit that referenced this pull request Nov 10, 2022
* Extended mapping table with command byte count

* Terminate early if command is unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants