From 753b88408833702dbcf004e00a846550c2a0e952 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 12 Apr 2010 15:55:18 +0200 Subject: 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.) --- contrib/check_linux_raid.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib') diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl index c7c9c55e..d2e5b463 100644 --- a/contrib/check_linux_raid.pl +++ b/contrib/check_linux_raid.pl @@ -64,6 +64,7 @@ while(defined $nextdev){ } elsif (/recovery = (.*?)\s/) { $recovery{$device} = $1; ($finish{$device}) = /finish=(.*?min)/; + $device=undef; } elsif (/^\s*$/) { $device=undef; } -- cgit v1.2.3