+7
−5
+7
−5
+7
−5
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
md_check_recovery expects ->spare_active to return 'true' if any spares were activated, but none of them do, so the consequent change in 'degraded' is not notified through sysfs. So count the number of spares activated, subtract it from 'degraded' just once, and return it. Reported-by:Adrian Drzewiecki <adriand@vmware.com> Signed-off-by:
NeilBrown <neilb@suse.de>