From: NeilBrown Date: Thu, 5 Feb 2009 06:06:03 +0000 (+1100) Subject: Monitor: send --test message for arrays in /proc/mdstat that aren't in mdadm.conf X-Git-Tag: mdadm-2.6.9~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc8544484fac3ebb1c662c171273e1081f5180d8;p=thirdparty%2Fmdadm.git Monitor: send --test message for arrays in /proc/mdstat that aren't in mdadm.conf "mdadm --monitor --test --scan" currently only sends test messages for arrays listed on the command line or in /etc/mdadm.conf. With this patch it also reports on any active arrays, which is more in line with the description in the manpage. Thanks to Andrew Walrond for reporting this error. Signed-off-by: NeilBrown --- diff --git a/Monitor.c b/Monitor.c index 2f0fe0cc..38256000 100644 --- a/Monitor.c +++ b/Monitor.c @@ -431,6 +431,8 @@ int Monitor(mddev_dev_t devlist, st->spare_group = NULL; st->expected_spares = -1; statelist = st; + if (test) + alert("TestMessage", st->devname, NULL, mailaddr, mailfrom, alert_cmd, dosyslog); alert("NewArray", st->devname, NULL, mailaddr, mailfrom, alert_cmd, dosyslog); new_found = 1; }