forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: scrub: implement recoverable sectors report for scrub_fs
This patch introduces two new functions: - scrub_fs_recover_meta() - scrub_fs_recover_data() Both of them are going to check if we can recovery the data/meta sectors inside a vertical stripe, and if we can update the stat->data/meta_recoverable accounting. None of them has implemented the writeback function though. For scrub_fs_recover_meta() it's not much different than the existing scrub, just make sure we have one good copy them all the other copies can be recoverable. For scrub_fs_recover_data() besides the existing csum based verification, for NODATASUM cases we will make sure all the copies match each other. If they don't match, we will report all the sectors as uncertain. Signed-off-by: Qu Wenruo <wqu@suse.com>
- Loading branch information
1 parent
ac4b644
commit e6387ec
Showing
1 changed file
with
196 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters