Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6b965620 authored by NeilBrown's avatar NeilBrown
Browse files

md: provide appropriate return value for spare_active functions.



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: default avatarAdrian Drzewiecki <adriand@vmware.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent e6ffbcb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment