Skip to content

Add routines based on MMC PREVENT ALLOW MEDIA REMOVAL - #15

Open
skr4n wants to merge 4 commits into
mainfrom
prevent-allow-media-removal
Open

Add routines based on MMC PREVENT ALLOW MEDIA REMOVAL#15
skr4n wants to merge 4 commits into
mainfrom
prevent-allow-media-removal

Conversation

@skr4n

@skr4n skr4n commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Add routines based on MMC command PREVENT ALLOW MEDIA REMOVAL:

  • allow_media_removal()
  • prevent_media_removal()

@skr4n skr4n changed the title Implement MMC PREVENT ALLOW MEDIA REMOVAL Implement MMC PREVENT ALLOW MEDIA REMOVAL and START STOP UNIT Jul 27, 2026

return self.run_command(Some(MmcDirection::Write), &mut [], cdb);

const OPCODE: u8 = 0x1E;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as in PR #13. This is a problem with waiting a week or so and then putting in 8 PRs rather than putting in the PR as work is done, even as a draft.

If something is going in the wrong direction, continuing that direction 7 more times makes things worse from the reviewer's standpoint.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I've made the change.

This is a problem with waiting a week or so and then putting in 8 PRs rather than putting in the PR as work is done, even as a draft.

I was waiting on you to merge existing PRs (as newer ones are dependent on earlier ones) but since yesterday you'd asked to push all the code, I've done so.

@skr4n
skr4n force-pushed the prevent-allow-media-removal branch 2 times, most recently from a3747b2 to d004cca Compare July 28, 2026 04:25
skr4n added 2 commits July 28, 2026 18:11
There are two major types of drivers in Cdio.
- OS
- Images

Thus, rather than have a generic `new()` method with multiple (unused)
initialization options, have two methods `with_device()` and
`with_image()`.

This commit introduces `with_device()`.
@skr4n
skr4n force-pushed the prevent-allow-media-removal branch from 680825b to 508ab6f Compare July 28, 2026 15:02
@skr4n skr4n changed the title Implement MMC PREVENT ALLOW MEDIA REMOVAL and START STOP UNIT Implement MMC PREVENT ALLOW MEDIA REMOVAL Jul 28, 2026
@skr4n skr4n changed the title Implement MMC PREVENT ALLOW MEDIA REMOVAL Add routines based on MMC PREVENT ALLOW MEDIA REMOVAL Jul 28, 2026
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