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

md: set MD_RECOVERY_RECOVER when starting a degraded array.



This ensures that 'sync_action' will show 'recover' immediately the
array is started.  If there is no spare the status will change to
'idle' once that is detected.

Clear MD_RECOVERY_RECOVER for a read-only array to ensure this change
happens.

This allows scripts which monitor status not to get confused -
particularly my test scripts.

Signed-off-by: default avatarNeilBrown <neilb@suse.com>
parent c74c0d76
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment