Make 'repair' actually work for raid1.
commit346c9b5d4fde30eae1cbcdb4bc62f9e1d0ddfd13
authorNeil Brown <neilb@suse.de>
Tue, 30 Jan 2007 23:53:52 +0000 (31 00:53 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sat, 3 Feb 2007 00:56:23 +0000 (3 01:56 +0100)
treea7379505a42ef6a3dc1a1f4b842944c0dc5edccb
parentf69c6c18f688ef789beff30a8de809491c7609dd
Make 'repair' actually work for raid1.

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: Neil Brown <neilb@suse.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/md/md.c
drivers/md/raid1.c