-
Notifications
You must be signed in to change notification settings - Fork 28
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
Reproducible filesystem corruption with too-low RAM buffer size #13
Comments
Thanks, I will look into it |
Any news? |
not yet, sorry. |
Bug confirmed. Working on it. |
Still working? |
Hello, I reproduced the bug, but in addition to the (very) little available time, I am having some difficulty in finding where the behaviour of the low-RAM case starts diverging from the normal case (ponder) |
It might be sensible to note here too that I added a patch in Debian to display a warning specifically for this bug: https://salsa.debian.org/debian/fstransform/blob/master/debian/patches/0001-Output-explicit-warning-about-data-corruption-with-l.patch Of course a proper fix would be better, but at least users are warned. |
Makes sense. |
After two days rewriting a lot of code (in another branch), I finally found the cause: the loop copying continuous segments larger than RAM buffer was bugged, it incremented only one iteration variable instead of all three. Fixed in 1a93573 |
fix reproducible filesystem corruption with too-low RAM buffer size: the loop copying continuous segments larger than RAM buffer was bugged, it incremented only one iteration variable instead of all three
When given "-m something_too_low", fsremap corrupts data. The precise value of "too low" is dependent on the data to be remapped, I have seen a case when 64 MB is not enough.
Here is a test case that relies only on downloadable files.
The text was updated successfully, but these errors were encountered: