summaryrefslogtreecommitdiff
path: root/chunk-recover.c
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2013-11-28 13:32:50 +0800
committerChris Mason <clm@fb.com>2014-01-31 08:22:08 -0800
commit7af8e4ee2ad1ffee55be45206515038a3c581c65 (patch)
treeff548d857b6917b23ec53d17c00dea799ab7fbb3 /chunk-recover.c
parent52ddfa74fe191dd8ec23702be2aac3f76f86e4d3 (diff)
downloadbtrfs-progs-7af8e4ee2ad1ffee55be45206515038a3c581c65.tar.gz
btrfs-progs: skip chunk recover works when check chunks successfully
If no chunks need to be recovered, skip the recover works, meanwhile the user won't be annoyed by the "ask_user". Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'chunk-recover.c')
-rw-r--r--chunk-recover.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chunk-recover.c b/chunk-recover.c
index ae0d318..45d6eae 100644
--- a/chunk-recover.c
+++ b/chunk-recover.c
@@ -1685,6 +1685,9 @@ int btrfs_recover_chunk_tree(char *path, int verbose, int yes)
* droppped from the fs. Don't deal with them now, we will
* check it after the fs is opened.
*/
+ } else {
+ fprintf(stderr, "Check chunks successfully with no orphans\n");
+ goto fail_rc;
}
root = open_ctree_with_broken_chunk(&rc);