summaryrefslogtreecommitdiff
path: root/repair.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2017-10-10 13:53:24 +0800
committerDavid Sterba <dsterba@suse.com>2017-11-14 15:59:00 +0100
commita1a6da60670fc4418be1126be5843596b434b6df (patch)
tree6484814c0fedcf10ca9396fa51fd7efd55f2e9c5 /repair.h
parent06f56db9cb1aaff277b25f07da091e146ac319b9 (diff)
btrfs-progs: check: Also check and repair unaligned/mismatch device and super sizes
Along with the rescue introduced, also introduce check and repair for them. Unlike normal check functions, some of the check is optional, and even if the image failed to pass optional check, kernel can still runs fine. (But may cause noisy kernel warning) So some check, mainly for alignment, will not cause btrfs check to fail, but only to output warning and instructs how to fix it. For repair, it just calls the same repair function in rescue, and is included in 'btrfs check --repair'. But 'btrfs rescue' is still the preferred method, since it can be used independent of all the 'check' passes, if we know what's the exact problem to fix. Signed-off-by: Qu Wenruo <quwenruo.btrfs@gmx.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'repair.h')
0 files changed, 0 insertions, 0 deletions