Repair the miss modify in
commit 8698a2b9ba89 ("btrfs-progs: Allow inspect dump-tree to show specified 
tree block even some tree roots are corrupted")

Due to above modify, the decompressed file of
tests/fuzz-tests/images/bko-172811.raw.xz can not be open by
btrfs-debug-tree, because the csum tree's bytenr is not correct.

Signed-off-by: Gu Jinxiang <g...@cn.fujitsu.com>
---
 cmds-inspect-dump-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmds-inspect-dump-tree.c b/cmds-inspect-dump-tree.c
index 4e72c08a..9ae4eb23 100644
--- a/cmds-inspect-dump-tree.c
+++ b/cmds-inspect-dump-tree.c
@@ -219,7 +219,7 @@ int cmd_inspect_dump_tree(int argc, char **argv)
        int uuid_tree_only = 0;
        int roots_only = 0;
        int root_backups = 0;
-       unsigned open_ctree_flags = OPEN_CTREE_FS_PARTIAL;
+       unsigned open_ctree_flags = OPEN_CTREE_PARTIAL;
        u64 block_only = 0;
        struct btrfs_root *tree_root_scan;
        u64 tree_id = 0;
-- 
2.14.3



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to