]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit7e34d5c2109f286720a628f2714e3e420be3346b
tree1ca670d9eabad009cee23c44f6cb8cd1b3cccadb
parent658325d0db82c904319e877049824378fcef8f7d
[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