• NeilBrown's avatar
    md: Fix dev_sectors on takeover from raid0 to raid4/5 · 3b71bd93
    NeilBrown authored
    A raid0 array doesn't set 'dev_sectors' as each device might
    contribute a different number of sectors.
    So when converting to a RAID4 or RAID5 we need to set dev_sectors
    as they need the number.
    We have already verified that in fact all devices do contribute
    the same number of sectors, so use that number.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    3b71bd93
raid5.c 167 KB