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

tinydisk: allow access to MAX_PARTth partition #1131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

six809
Copy link

@six809 six809 commented Jan 5, 2025

Space in td_lba[][] is reserved for MAX_PART+1 partitions (index 0 being whole disk), so access to [MAX_PART] is allowed (and without it you can't access hda5).

Edit: May be that dropping MAX_PART to 4 is also the "right thing" here - I just noticed it wasn't allowing hda5 which was enumerated in the CCPT hook because MAX_PART is 5.

Space in td_lba[][] is reserved for MAX_PART+1 partitions (index 0 being
whole disk), so access to [MAX_PART] is allowed (and without it you
can't access hda5.
@EtchedPixels
Copy link
Owner

Will take a look when I get a moment and work out what I was thinking. The PC base partitions only allow for 4 plus the whole disk however.
If CCPT needs more then probably MAX_PART needs to be overrideable in the per system config.h or something

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