• Neil Brown's avatar
    Make 'repair' actually work for raid1. · 346c9b5d
    Neil Brown authored
    When 'repair' finds a block that is different one the various
    parts of the mirror. it is meant to write a chosen good version
    to the others.  However it currently writes out the original data
    to each. The memcpy to make all the data the same is missing.
    
    Also correct a test so that 'repair' causes a repair, rather than
    anything other then 'repair'.
    Signed-off-by: default avatarNeil Brown <neilb@suse.de>
    Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
    346c9b5d
raid1.c 54.6 KB