diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-02-22 14:59:56 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-26 17:27:58 +0100 |
commit | c8c3715969a1e9d3af39863583cfbe4025db11d5 (patch) | |
tree | ed610203b2668861d064b60275c57c1a039d0e9b /find-root.h | |
parent | 9db13dca2f00b8a7cfd31fb737cfd0e73ad48abf (diff) |
btrfs-progs: find-root: Allow btrfs-find-root to search chunk root even chunk root is corrupted
Since now open_ctree_fs_info() can even return a valid fs_info with only
system chunk mapping from super block, use this ability to do chunk root
search for heavily damanged fs.
As an fast alternative for time consuming and buggy chunk-recovery.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'find-root.h')
-rw-r--r-- | find-root.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/find-root.h b/find-root.h index 1c67ebcc..60d1111d 100644 --- a/find-root.h +++ b/find-root.h @@ -65,7 +65,7 @@ struct btrfs_find_root_filter { * This *WILL* take *TONS* of extra time. */ }; -int btrfs_find_root_search(struct btrfs_root *chunk_root, +int btrfs_find_root_search(struct btrfs_fs_info *fs_info, struct btrfs_find_root_filter *filter, struct cache_tree *result, struct cache_extent **match); |