From 37dfc3d638aee1fe3ae6d6b4aa0e648e1a9d61ca Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 14 Dec 2006 17:31:25 +1100 Subject: When resync finished, report the mismatch count if there is one. This doesn't get mailed out, but will appear in syslog... Maybe it should be mailed if it was a 'check' or 'repair' pass... --- sysfs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysfs.c') diff --git a/sysfs.c b/sysfs.c index 166481f..25ede6b 100644 --- a/sysfs.c +++ b/sysfs.c @@ -113,6 +113,12 @@ struct sysarray *sysfs_read(int fd, int devnum, unsigned long options) goto abort; sra->cache_size = strtoul(buf, NULL, 0); } + if (options & GET_MISMATCH) { + strcpy(base, "mismatch_cnt"); + if (load_sys(fname, buf)) + goto abort; + sra->mismatch_cnt = strtoul(buf, NULL, 0); + } if (! (options & GET_DEVS)) return sra; -- cgit