From: NeilBrown Also keep count on the number of errors found. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton --- drivers/md/raid10.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN drivers/md/raid10.c~md-support-check-without-repair-of-raid10-arrays drivers/md/raid10.c --- devel/drivers/md/raid10.c~md-support-check-without-repair-of-raid10-arrays 2006-01-06 00:05:18.000000000 -0800 +++ devel-akpm/drivers/md/raid10.c 2006-01-06 00:06:27.000000000 -0800 @@ -1206,6 +1206,10 @@ static void sync_request_write(mddev_t * break; if (j == vcnt) continue; + mddev->resync_mismatches += r10_bio->sectors; + if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) + /* Don't fix anything. */ + continue; /* Ok, we need to write this bio * First we need to fixup bv_offset, bv_len and * bi_vecs, as the read request might have corrupted these _