diff options
author | Qu Wenruo <wqu@suse.com> | 2017-10-17 15:45:50 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-14 15:59:00 +0100 |
commit | 06f56db9cb1aaff277b25f07da091e146ac319b9 (patch) | |
tree | 92df4648f5a16265ccde68c06b95368e4bbb635a /volumes.h | |
parent | a450dc4bfe76329b908e2b5aa43d3e6a6aa22732 (diff) |
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>
Diffstat (limited to 'volumes.h')
-rw-r--r-- | volumes.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -248,4 +248,5 @@ u64 btrfs_stripe_length(struct btrfs_fs_info *fs_info, int btrfs_fix_device_size(struct btrfs_fs_info *fs_info, struct btrfs_device *device); int btrfs_fix_super_size(struct btrfs_fs_info *fs_info); +int btrfs_fix_device_and_super_size(struct btrfs_fs_info *fs_info); #endif |