NeilBrown: Monitor: send --test message for arrays in /proc/ mdstat that aren't in mdadm.conf
Martin F. Krafft
madduck at alioth.debian.org
Thu Mar 12 12:12:23 UTC 2009
Module: mdadm
Branch: upstream
Commit: bc8544484fac3ebb1c662c171273e1081f5180d8
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=bc8544484fac3ebb1c662c171273e1081f5180d8
Author: NeilBrown <neilb at suse.de>
Date: Thu Feb 5 17:06:03 2009 +1100
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 at walrond.org> for reporting this error.
Signed-off-by: NeilBrown <neilb at suse.de>
---
Monitor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Monitor.c b/Monitor.c
index 2f0fe0c..3825600 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;
}
More information about the pkg-mdadm-commits
mailing list