SF.net SVN: logwatch:[180] scripts/services/mdadm
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 180
http://sourceforge.net/p/logwatch/code/180
Author: opoplawski
Date: 2014-01-15 16:00:54 +0000 (Wed, 15 Jan 2014)
Log Message:
-----------
Use mdadm --detail --scan instead of mdadm --examine --scan.
See https://bugzilla.redhat.com/show_bug.cgi?id=827240
Modified Paths:
--------------
scripts/services/mdadm
Modified: scripts/services/mdadm
===================================================================
--- scripts/services/mdadm 2014-01-09 16:29:00 UTC (rev 179)
+++ scripts/services/mdadm 2014-01-15 16:00:54 UTC (rev 180)
@@ -27,14 +27,12 @@
my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
my @devices = ();
-# Sometimes mdadm --examine --scan reports device with different names than
-# what is in use. Use /etc/mdadm.conf instead if it exists.
if ( -f "/etc/mdadm.conf" ) {
open(MDADM,"< /etc/mdadm.conf");
} elsif ( -f "/etc/mdadm/mdadm.conf" ) {
open(MDADM,"< /etc/mdadm/mdadm.conf");
} else {
- open(MDADM,"mdadm --examine --scan 2>/dev/null|");
+ open(MDADM,"mdadm --detail --scan 2>/dev/null|");
}
while (<MDADM>) {
if (/^ARRAY/) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk