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

Added support for SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL #2532

Merged
merged 1 commit into from May 8, 2024

Conversation

acscd
Copy link
Contributor

@acscd acscd commented Mar 23, 2024

This adds support for SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL via a callback function tud_msc_prevent_allow_medium_removal_cb, very similar to the handling of SCSI_CMD_START_STOP_UNIT.

Properly handling the Prevent / Allow Medium Removal command clears up a "Failed to eject device" error on Linux.

@HiFiPhile
Copy link
Collaborator

Thanks for your PR, looks good.

@HiFiPhile HiFiPhile merged commit d37d25d into hathach:master May 8, 2024
49 checks passed
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.

None yet

2 participants