From 52ddfa74fe191dd8ec23702be2aac3f76f86e4d3 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Thu, 28 Nov 2013 13:32:49 +0800 Subject: Btrfs-progs: chunk-recover: add new flag to prepare recovering for ordered data chunk When reading block groups we will searching it's corresponding chunk, however, at this time, some chunks has not been built(data chunks raid0/raid10/raid56), don't bug_on here, we will try to rebuild these chunks later. Signed-off-by: Wang Shilong Signed-off-by: David Sterba Signed-off-by: Chris Mason --- chunk-recover.c | 1 + 1 file changed, 1 insertion(+) (limited to 'chunk-recover.c') diff --git a/chunk-recover.c b/chunk-recover.c index e880bbc..ae0d318 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1197,6 +1197,7 @@ open_ctree_with_broken_chunk(struct recover_control *rc) fprintf(stderr, "Failed to allocate memory for fs_info\n"); return ERR_PTR(-ENOMEM); } + fs_info->is_chunk_recover = 1; fs_info->fs_devices = rc->fs_devices; ret = btrfs_open_devices(fs_info->fs_devices, O_RDWR); -- cgit v1.2.1