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

get more accurate read of ext4 superblock in tests #242

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Jul 22, 2024

The tests were using dumpe2fs/debugfs -R "stats" (same thing) to get information about the superblock to use for tests. Mostly that works, except for lifetime writes. That is rounded to MB, which makes it difficult to get the correct number, and sometimes is wrong, which makes the 2 bytes in the calculation incorrect, and makes the checksum wrong.

This instead reads the specific bytes from the superblock via dd and uses that as the accurate number.

@deitch deitch merged commit 40221ec into master Jul 22, 2024
20 checks passed
@deitch deitch deleted the superblock-test-byte-count branch July 22, 2024 09:17
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.

1 participant