-
Notifications
You must be signed in to change notification settings - Fork 117
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
Wrap errors, not Unwrap #240
Conversation
There are 2 tests failing, both related to converting superblock to bytes. Yet you didn't change anything there. Can you run the tests on the |
After running the |
Then why doesn't it pass in CI? 🤷♂️ |
Something is up with that runner/image? Same here now #241 |
Same here. You don't need to run it manually, anyways. Just remove the contents of (or the directory itself) |
I just ran a test on macOS and on Ubuntu 22.04. It shouldn't matter, since the actual images generating from within |
There are 2 sections of the superblock that are mismatching. The second is just the checksum, which is different because of the first. Resolve the first, the checksum issue should go away. The first is total bytes written. The actual is showing 0x9400 = 37888, while the expected is 0x95da = 38362, a difference of 474 (the total KiB written is at position 0x178 in the superblock, little-endian). Ah, I see it, the issue is here. After
Unfortunately, that is in MB and not KB, and is not precise. So a small variant can throw it off. We try to catch it here: sbKBWritten := float64(sb.totalKBWritten)
parsedKBWritten := float64(parsed.totalKBWritten)
KBdiff := math.Abs(parsedKBWritten - sbKBWritten)
if KBdiff/sbKBWritten < 0.01 {
sb.totalKBWritten = parsed.totalKBWritten
} But it is a bit of a guessing game. It would be good if |
#242 fixes this, it has been merged in. Rebase on master and try again. |
Fixes #237