• NeilBrown's avatar
    md: fix v1.x metadata update when a disk is missing. · ddcf3522
    NeilBrown authored
    If an array with 1.x metadata is assembled with the last disk missing,
    md doesn't properly record the fact that the disk was missing.
    
    This is unlikely to cause a real problem as the event count will be
    different to the count on the missing disk so it won't be included in
    the array.  However it could still cause confusion.
    
    So make sure we clear all the relevant slots, not just the early ones.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    ddcf3522
md.c 190 KB