From 580759939dbcf835cb5293638060e8dbc41c7bea Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Tue, 14 Apr 2015 00:48:24 +0530 Subject: bitrot: Scrubber log should report 'bad' file detection as ALERT in log If scrubber detect any bad object by mismatching of checksum of scrubber and signer then log messages shold come as a Alert instead of warning. Change-Id: I075d80700cbe6182e525a04419a80ab18419ff91 BUG: 1218033 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/10515 Reviewed-by: Raghavendra Bhat Tested-by: Raghavendra Bhat --- xlators/features/bit-rot/src/bitd/bit-rot-scrub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 1e9c2035c81..183fd22a0fc 100644 --- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c +++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c @@ -203,9 +203,9 @@ bitd_compare_ckum (xlator_t *this, return 0; } - gf_log (this->name, GF_LOG_WARNING, - "Object checksumsum mismatch: %s [GFID: %s]", - entry->d_name, uuid_utoa (linked_inode->gfid)); + gf_log (this->name, GF_LOG_ALERT, + "Object checksum mismatch: %s [GFID: %s | Brick: %s]", + loc->path, uuid_utoa (linked_inode->gfid), child->brick_path); /* Perform bad-file marking */ xattr = dict_new (); -- cgit