From d97a5e60506343bd8cb2b75d5003b2a49cbc8566 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Wed, 7 Dec 2011 08:41:57 +1100 Subject: [PATCH] Report raid level type to syslog on RebuildFinished event. Thus, for RAID1/RAID10 this can be filtered out in logcheck. Relates-to: Debian bug 599821 Signed-off-by: NeilBrown --- Monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Monitor.c b/Monitor.c index fc0488bc..8bc88247 100644 --- a/Monitor.c +++ b/Monitor.c @@ -564,7 +564,8 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat, sysfs_read(-1, st->devnum, GET_MISMATCH); if (sra && sra->mismatch_cnt > 0) { char cnt[40]; - sprintf(cnt, " mismatches found: %d", sra->mismatch_cnt); + sprintf(cnt, " mismatches found: %d (on raid level %d)", + sra->mismatch_cnt, array.level); alert("RebuildFinished", dev, cnt, ainfo); } else alert("RebuildFinished", dev, NULL, ainfo); -- 2.47.2