Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Apple vendor modepage sending #278

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Conversation

PetteriAimonen
Copy link
Collaborator

There was a bug in ModeSense implementation that caused Apple vendor modepage 0x30 to be sent even when quirks were set to 0. This bug remains in SCSI2SDv6, but was earlier fixed in SCSI2SDv5. In ZuluSCSI code, the bug was masked by an extra 0x00 at the end of the modepage constant, which caused the length check to be negative in most cases.

The changes made here did not improve behavior in #272, but I think this is more correct and should work the same on most systems.

Requires testing on a Mac that cares about 0x30 modepage for CD-ROM before merging. Not sure which systems do this, Mac LC III does not seem to care.

It appears there was an extra 0x00 at the end.
Apparently there was a mistake between || and && that caused
Apple vendor page to be sent even when Apple quirks were disabled
and when it wouldn't fit the buffer.
@aperezbios aperezbios merged commit a4c4aec into main Sep 6, 2023
@aperezbios aperezbios deleted the dev_apple_vendor_modepage branch September 6, 2023 23:58
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