summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2018-02-27 17:12:59 +0800
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:34:19 +0200
commitb3a99bc663d86c92d23e92c3d7ec25eebeaaf898 (patch)
tree432c9f87e0bbcf0d7d52f1630ff093f07c44304a
parentccb3ddb695c804f2f028e8c9cbf6cc282ce1ce58 (diff)
btrfs-progs: check: Distinguish csum checking output for --check-data-csum
No matter --check-data-csum is passed or not, btrfs check will always output message like "checking csum". This message could be a little confusing, change it according to --check-data-csum option. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--check/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/check/main.c b/check/main.c
index 490506f5..11a6561a 100644
--- a/check/main.c
+++ b/check/main.c
@@ -9859,7 +9859,11 @@ int cmd_check(int argc, char **argv)
goto out;
}
- fprintf(stderr, "checking csums\n");
+ if (check_data_csum)
+ fprintf(stderr, "checking csums against data\n");
+ else
+ fprintf(stderr,
+ "checking only csum items (without verifying data)\n");
ret = check_csums(root);
/*
* Data csum error is not fatal, and it may indicate more serious