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

md: fix clearing of 'blocked' flag in the presence of bad blocks.



When the 'blocked' flag on a device is cleared while there are
unacknowledged bad blocks we must fail the device.  This is needed for
backwards compatability of the interface.

The code currently uses the wrong test for "unacknowledged bad blocks
exist".  Change it to the right test.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 1b6afa17
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