]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
md: make sure read errors are auto-corrected during a 'check' resync in raid1
authorNeilBrown <neilb@suse.de>
Wed, 17 Oct 2007 06:30:55 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:03 +0000 (08:43 -0700)
commitcf7a44168d743ca97863b7f34ed42a45fd7b5ab0
tree884f5094a46be4da9f30292c9a5a417f100d5d5f
parentd7f3d291a0e1330f341fdf1128b2d12fff7932ee
md: make sure read errors are auto-corrected during a 'check' resync in raid1

Whenever a read error is found, we should attempt to overwrite with correct
data to 'fix' it.

However when do a 'check' pass (which compares data blocks that are
successfully read, but doesn't normally overwrite) we don't do that.  We
should.

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