• NeilBrown's avatar
    md/raid1: avoid reading known bad blocks during resync · 06f60385
    NeilBrown authored
    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>
    06f60385
raid1.c 64.2 KB