Code

Fix Debian bug #574612: Return WARNING on rebuild
authorHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 12 Apr 2010 13:55:18 +0000 (15:55 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 12 Apr 2010 13:55:18 +0000 (15:55 +0200)
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.)

contrib/check_linux_raid.pl

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