Blob Blame History Raw
From ba6855fbb31112c54edbaa2d4624024691266d3f Mon Sep 17 00:00:00 2001
From: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
Date: Thu, 20 Aug 2015 16:12:53 +0530
Subject: [PATCH 284/304] bitrot: Scrubber log should mark bad file as a ALERT in the scrubber log

This patch is backport of: http://review.gluster.org/11965

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 <ggarg@redhat.com>

Change-Id: I6f1f9ca1a1d20d99b98060ffd574b6d5a877431e
BUG: 1238977
Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/55866
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
---
 xlators/features/bit-rot/src/bitd/bit-rot-scrub.c |    4 ++--
 1 files changed, 2 insertions(+), 2 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 3a038ce..2fb5caa 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
+++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
@@ -243,8 +243,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)
-- 
1.7.1