|
|
7f4c2a |
From ba6855fbb31112c54edbaa2d4624024691266d3f Mon Sep 17 00:00:00 2001
|
|
|
7f4c2a |
From: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
|
|
|
7f4c2a |
Date: Thu, 20 Aug 2015 16:12:53 +0530
|
|
|
7f4c2a |
Subject: [PATCH 284/304] bitrot: Scrubber log should mark bad file as a ALERT in the scrubber log
|
|
|
7f4c2a |
|
|
|
7f4c2a |
This patch is backport of: http://review.gluster.org/11965
|
|
|
7f4c2a |
|
|
|
7f4c2a |
If bad file detected by scrubber then scrubber should log that bad
|
|
|
7f4c2a |
file as a ALERT message in scrubber log.
|
|
|
7f4c2a |
|
|
|
7f4c2a |
>>Change-Id: I410429e78fd3768655230ac028fa66f7fc24b938
|
|
|
7f4c2a |
>>BUG: 1240218
|
|
|
7f4c2a |
>>Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
|
|
|
7f4c2a |
|
|
|
7f4c2a |
Change-Id: I6f1f9ca1a1d20d99b98060ffd574b6d5a877431e
|
|
|
7f4c2a |
BUG: 1238977
|
|
|
7f4c2a |
Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
|
|
|
7f4c2a |
Reviewed-on: https://code.engineering.redhat.com/gerrit/55866
|
|
|
7f4c2a |
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
|
|
|
7f4c2a |
Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
|
|
|
7f4c2a |
---
|
|
|
7f4c2a |
xlators/features/bit-rot/src/bitd/bit-rot-scrub.c | 4 ++--
|
|
|
7f4c2a |
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
7f4c2a |
|
|
|
7f4c2a |
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
|
|
|
7f4c2a |
index 3a038ce..2fb5caa 100644
|
|
|
7f4c2a |
--- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
|
|
|
7f4c2a |
+++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
|
|
|
7f4c2a |
@@ -243,8 +243,8 @@ bitd_compare_ckum (xlator_t *this,
|
|
|
7f4c2a |
goto dictfree;
|
|
|
7f4c2a |
}
|
|
|
7f4c2a |
|
|
|
7f4c2a |
- gf_msg (this->name, GF_LOG_INFO, 0, BRB_MSG_MARK_CORRUPTED, "Marking %s"
|
|
|
7f4c2a |
- " [GFID: %s | Brick: %s] as corrupted..", loc->path,
|
|
|
7f4c2a |
+ gf_msg (this->name, GF_LOG_ALERT, 0, BRB_MSG_MARK_CORRUPTED, "Marking"
|
|
|
7f4c2a |
+ " %s [GFID: %s | Brick: %s] as corrupted..", loc->path,
|
|
|
7f4c2a |
uuid_utoa (linked_inode->gfid), child->brick_path);
|
|
|
7f4c2a |
ret = syncop_fsetxattr (child->xl, fd, xattr, 0, NULL, NULL);
|
|
|
7f4c2a |
if (ret)
|
|
|
7f4c2a |
--
|
|
|
7f4c2a |
1.7.1
|
|
|
7f4c2a |
|