diff options
author | NeilBrown <neilb@suse.de> | 2009-02-05 17:06:03 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-02-05 17:06:03 +1100 |
commit | bc8544484fac3ebb1c662c171273e1081f5180d8 (patch) | |
tree | 3b776396931177e6089385b458a10c3e6308a2e7 | |
parent | b47dff6675026053dc574f305df570d79754484e (diff) | |
download | mdadm-bc8544484fac3ebb1c662c171273e1081f5180d8.tar.gz mdadm-bc8544484fac3ebb1c662c171273e1081f5180d8.tar.xz mdadm-bc8544484fac3ebb1c662c171273e1081f5180d8.zip |
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 <andrew@walrond.org> for reporting this error.
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | Monitor.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |