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

read GDT table from correct block #232

Merged
merged 1 commit into from
Jun 28, 2024
Merged

read GDT table from correct block #232

merged 1 commit into from
Jun 28, 2024

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Jun 28, 2024

Fixes #231

For ext4, reading the group descriptor table (GDT), it was assuming that the GDT always followed right after the superblock, which is right after the padding bytes. This is true when blocksize is 1024, as padding = block 0, superblock = block 1, GDT = block 2. However, if it is larger than 1024, then padding + superblock = block 0, GDT = block 1.

@deitch deitch merged commit 13b7cc2 into master Jun 28, 2024
20 checks passed
@deitch deitch deleted the fix-ext4-gdt-read branch June 28, 2024 06:54
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.

Can't read ext4 partition...
1 participant