[Yaird-devel] Bug#381683: yaird fails because of changed output in
new mdadm
Thomas Prokosch
7nrmi1s02 at sneakemail.com
Sun Aug 6 13:48:34 UTC 2006
Package: yaird
Version: 0.0.12-16
Severity: important
Tags: patch
The output of "mdadm --detail" has changed in the new version 2.5.2, and
yaird 0.0.12 has problems with parsing the new output format. To be more
precise, mdadm offers a new key/value pair with the key "Name" in its
output.
The attached patch ignores the new behaviour and therefore fixes yaird.
-------------- next part --------------
--- RaidTab.pm 2006-08-06 15:26:33.710290095 +0200
+++ /usr/lib/yaird/perl/RaidTab.pm 2006-08-03 22:23:42.313192000 +0200
@@ -146,6 +146,9 @@
elsif ($fields[$i] =~ /^spares=(\d+)$/i) {
# nothing
}
+ elsif ($fields[$i] =~ /^name=(.+)$/i) {
+ # nothing
+ }
else {
my $pair = $fields[$i];
Base::fatal ("Unknown attribute $pair in mdadm output");
More information about the Yaird-devel
mailing list