From bc8544484fac3ebb1c662c171273e1081f5180d8 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 5 Feb 2009 17:06:03 +1100 Subject: [PATCH] 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 --- Monitor.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.2