Since data csum is not a fatal error compared to fs/extent trees, continue check.
Signed-off-by: Qu Wenruo <w...@suse.com> --- check/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/check/main.c b/check/main.c index 15b3c402c9f5..22a78273be15 100644 --- a/check/main.c +++ b/check/main.c @@ -9847,11 +9847,13 @@ int cmd_check(int argc, char **argv) fprintf(stderr, "checking csums\n"); ret = check_csums(root); - err |= !!ret; - if (ret) { + /* + * Data csum error is not fatal, and it may indicates more serious + * corruption, continue checking. + */ + if (ret) error("errors found in csum tree"); - goto out; - } + err |= !!ret; fprintf(stderr, "checking root refs\n"); /* For low memory mode, check_fs_roots_v2 handles root refs */ -- 2.16.2 -- 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