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

md/raid1: avoid reading known bad blocks during resync



When performing resync/etc, keep the size of the request
small enough that it doesn't overlap any known bad blocks.
Devices with badblocks at the start of the request are completely
excluded.
If there is nowhere to read from due to bad blocks, record
a bad block on each target device.

Now that we never read from known-bad-blocks we can allow devices with
known-bad-blocks into a RAID1.

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