]> git.ipfire.org Git - thirdparty/mdadm.git/commit
raid6check: Repair mode used geo_map incorrectly
authorRobert Buchholz <rbu@goodpoint.de>
Mon, 10 Sep 2012 07:25:27 +0000 (17:25 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 10 Sep 2012 07:25:27 +0000 (17:25 +1000)
commit696e95a1df6a4030b9d5bd4eb0a94fa70e918a66
tree82c5d47da2de74603369f8895fb01c772ae7ff83
parentb67e45b858466acac1f410747893d6d717426287
raid6check: Repair mode used geo_map incorrectly

In repair mode, the data block indices to be repaired were calculated
using geo_map() which returns the disk slot for a data block index
and not the reverse. Now we simply store the reverse of that calculation
when we do it anyway.

Signed-off-by: NeilBrown <neilb@suse.de>
raid6check.c
tests/19repair-does-not-destroy [new file with mode: 0644]