diff options
author | Gaurav Kumar Garg <garg.gaurav52@gmail.com> | 2015-08-20 16:12:53 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-08-20 23:26:49 -0700 |
commit | 6cb73b4fe798b7bf3aface0aac2a4e6c7c618c0e (patch) | |
tree | a95ddc93b8f08c1adda04f4b0f626fb371da75d5 /xlators/features/bit-rot/src/bitd | |
parent | 53e57a62ab4254f131c1d02b70fcb9b97f33306c (diff) |
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 <ggarg@redhat.com>
Reviewed-on: http://review.gluster.org/11965
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/features/bit-rot/src/bitd')
-rw-r--r-- | 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 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) |