path: root/volumes.h
diff options
authorQu Wenruo <>2017-10-17 15:45:50 +0800
committerDavid Sterba <>2017-11-14 15:59:00 +0100
commit06f56db9cb1aaff277b25f07da091e146ac319b9 (patch)
tree92df4648f5a16265ccde68c06b95368e4bbb635a /volumes.h
parenta450dc4bfe76329b908e2b5aa43d3e6a6aa22732 (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 <> Reported-by: Rich Rauenzahn <> Reviewed-by: Nikolay Borisov <> Signed-off-by: Qu Wenruo <>
Diffstat (limited to 'volumes.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/volumes.h b/volumes.h
index d5bb5f86..11572e78 100644
--- a/volumes.h
+++ b/volumes.h
@@ -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);