-
Notifications
You must be signed in to change notification settings - Fork 73
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
Bcachefs, self healing reads as "poor man's scrub". #780
Comments
The follow version should check directory's and files and not only files:
|
The follow version should check directory's and files and not only files: poor_mans_scrub.sh
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following untested bash script copies all files of a partition to /dev/null. In the event that bcachefs uses e.g. dupe>=2 or a raid with redundancy, the files are compared with their checksums during the read process by bcachefs' own self-healing and files for which the checksum is not correct are replaced by files for which the checksum of the file is correct.
Untested Code. Use the code at your own risk. Please use the code only if you would write it yourself. The code is only intended for test use with a hard drive of a test system that does not contain any data that is still required.
Open Source Code. Feel free to use the Code for bcachefs project or what ever.
The text was updated successfully, but these errors were encountered: