btrfs-progs: find-root: Allow btrfs-find-root to search chunk root even chunk root...
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 22 Feb 2016 06:59:56 +0000 (14:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 26 Feb 2016 16:27:58 +0000 (17:27 +0100)
commitc8c3715969a1e9d3af39863583cfbe4025db11d5
treeed610203b2668861d064b60275c57c1a039d0e9b
parent9db13dca2f00b8a7cfd31fb737cfd0e73ad48abf
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>
btrfs-find-root.c
find-root.c
find-root.h