btrfs-progs: rescue: Introduce fix-device-size
authorQu Wenruo <wqu@suse.com>
Tue, 17 Oct 2017 07:45:50 +0000 (15:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:00 +0000 (15:59 +0100)
commit06f56db9cb1aaff277b25f07da091e146ac319b9
tree92df4648f5a16265ccde68c06b95368e4bbb635a
parenta450dc4bfe76329b908e2b5aa43d3e6a6aa22732
btrfs-progs: rescue: Introduce fix-device-size

Introduce new subcommand 'fix-device-size' to the rescue group, to fix
device size alignment-related problems.

Especially for people unable to mount their fs with super::total_bytes
mismatch, this tool will fix the problems and let the mount continue.

Reported-by: Asif Youssuff <yoasif@gmail.com>
Reported-by: Rich Rauenzahn <rrauenza@gmail.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Documentation/btrfs-rescue.asciidoc
cmds-rescue.c
volumes.c
volumes.h