Fix Debian bug #574612: Return WARNING on rebuild

Let check_linux_raid return a WARNING instead of an OK state during
volume recovery.

See: http://bugs.debian.org/574612

(Fixed by Christoph Martin, forwarded by Jan Wagner.)
This commit is contained in:
Holger Weiss 2010-04-12 15:55:18 +02:00
parent 933918ce5d
commit 753b884088

View file

@ -64,6 +64,7 @@ while(defined $nextdev){
} elsif (/recovery = (.*?)\s/) {
$recovery{$device} = $1;
($finish{$device}) = /finish=(.*?min)/;
$device=undef;
} elsif (/^\s*$/) {
$device=undef;
}