summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2017-10-17 15:12:39 +0800
committerDavid Sterba <dsterba@suse.com>2017-11-14 15:59:00 +0100
commita450dc4bfe76329b908e2b5aa43d3e6a6aa22732 (patch)
tree0959f231c8a70ea051c227293f86e0b4b13330fb /volumes.h
parentea9cd9df2be56041e2d62b0e72c77695b03261f7 (diff)
btrfs-progs: Introduce function to fix super block total bytes
Recent kernel (starting from v4.6) will refuse to mount if super block total bytes is smaller than all devices' size. This makes end user unable to do anything to their otherwise quite healthy fs. To fix such problem, introduce repair function to fix it on an unmounted filesystem. Reported-by: Asif Youssuff <yoasif@gmail.com> Reported-by: Rich Rauenzahn <rrauenza@gmail.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/volumes.h b/volumes.h
index 89bd4aa8..d5bb5f86 100644
--- a/volumes.h
+++ b/volumes.h
@@ -247,4 +247,5 @@ u64 btrfs_stripe_length(struct btrfs_fs_info *fs_info,
struct btrfs_chunk *chunk);
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);
#endif