From bcd89d50866080ebd5e4a1af4c3fe64832910f36 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Mon, 6 Jul 2015 14:47:58 +0530 Subject: features/bitrot: Scrub log improvement Change-Id: I4937a578185ebacd2558cb8e22f130cd10193188 BUG: 1240219 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/11547 Tested-by: NetBSD Build System Reviewed-by: Raghavendra Bhat --- xlators/features/bit-rot/src/bitd/bit-rot-scrub.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c index 15cb916dcb3..b0de93881c2 100644 --- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c +++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c @@ -218,9 +218,12 @@ bitd_compare_ckum (xlator_t *this, return 0; } - gf_msg (this->name, GF_LOG_ALERT, 0, BRB_MSG_CHECKSUM_MISMATCH, + gf_msg (this->name, GF_LOG_DEBUG, 0, BRB_MSG_CHECKSUM_MISMATCH, "Object checksum mismatch: %s [GFID: %s | Brick: %s]", loc->path, uuid_utoa (linked_inode->gfid), child->brick_path); + gf_msg (this->name, GF_LOG_ALERT, 0, BRB_MSG_CHECKSUM_MISMATCH, + "CORRUPTION DETECTED: Object %s {Brick: %s | GFID: %s}", + loc->path, child->brick_path, uuid_utoa (linked_inode->gfid)); /* Perform bad-file marking */ xattr = dict_new (); -- cgit