From: Sergey B Kirpichev Date: Tue, 6 Dec 2011 21:41:57 +0000 (+1100) Subject: Report raid level type to syslog on RebuildFinished event. X-Git-Tag: mdadm-3.2.3~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d97a5e60506343bd8cb2b75d5003b2a49cbc8566;p=thirdparty%2Fmdadm.git 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 --- 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);