From 6cb73b4fe798b7bf3aface0aac2a4e6c7c618c0e Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Thu, 20 Aug 2015 16:12:53 +0530 Subject: bitrot: Scrubber log should mark bad file as a ALERT in the scrubber log If bad file detected by scrubber then scrubber should log that bad file as a ALERT message in scrubber log. Change-Id: I410429e78fd3768655230ac028fa66f7fc24b938 BUG: 1240218 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/11965 Reviewed-by: Raghavendra Bhat Tested-by: NetBSD Build System --- xlators/features/bit-rot/src/bitd/bit-rot-scrub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') 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 661cffe949f..322d27f069e 100644 --- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c +++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c @@ -241,8 +241,8 @@ bitd_compare_ckum (xlator_t *this, goto dictfree; } - gf_msg (this->name, GF_LOG_INFO, 0, BRB_MSG_MARK_CORRUPTED, "Marking %s" - " [GFID: %s | Brick: %s] as corrupted..", loc->path, + gf_msg (this->name, GF_LOG_ALERT, 0, BRB_MSG_MARK_CORRUPTED, "Marking" + " %s [GFID: %s | Brick: %s] as corrupted..", loc->path, uuid_utoa (linked_inode->gfid), child->brick_path); ret = syncop_fsetxattr (child->xl, fd, xattr, 0, NULL, NULL); if (ret) -- cgit