[PATCH] md: allow raid1 to check consistency
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:26 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:04 +0000 (08:34 -0800)
commitd11c171e636cfd2df818cf3411d88222c2f4fcef
tree1ca670d9eabad009cee23c44f6cb8cd1b3cccadb
parent18f08819f42b647783e4f6ea99141623881bf182
[PATCH] md: allow raid1 to check consistency

Where performing a user-requested 'check' or 'repair', we read all readable
devices, and compare the contents.  We only write to blocks which had read
errors, or blocks with content that differs from the first good device found.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid1.c