Fix mdadm when we have spares

Spares should be counted as active devices
This commit is contained in:
Daniel Berteaud 2020-04-03 14:38:12 +02:00
parent 8a22c0bccc
commit b8f7e1ae6d
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ while (<FILE>) {
}
elsif ($2 eq "(S)") {
$spare_devs{$dev} .= "$1,";
$devs_up++;
}
else {
$active_devs{$dev} .= "$1,";