diff options
author | NeilBrown <neilb@suse.de> | 2015-07-20 09:15:13 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-07-20 09:15:13 +0200 |
commit | eae01ef02fe3a7dd9b71129343f905ac212c6658 (patch) | |
tree | 40503f4280c23a0a2366c9063022105f932b39b9 /raid6check.c | |
parent | raid6check: various cleanup/fixes (diff) | |
download | mdadm-eae01ef02fe3a7dd9b71129343f905ac212c6658.tar.xz mdadm-eae01ef02fe3a7dd9b71129343f905ac212c6658.zip |
restripe: fix data block order in raid6_2_data_recov
... rather than relying on the caller getting them in the
correct order.
This is better engineering and fixes a bug, but because the
failed_slotX numbers are used later with assumption that
they weren't swapped
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'raid6check.c')
-rw-r--r-- | raid6check.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/raid6check.c b/raid6check.c index f0194405..b2e17323 100644 --- a/raid6check.c +++ b/raid6check.c @@ -271,11 +271,6 @@ int manual_repair(int chunk_size, int syndrome_disks, failed_data, (uint8_t**)blocks, 1); } else { printf("Repairing D and D\n"); - if (failed_slot1 > failed_slot2) { - int t = failed_slot1; - failed_slot1 = failed_slot2; - failed_slot2 = t; - } raid6_2data_recov(syndrome_disks+2, chunk_size, failed_slot1, failed_slot2, (uint8_t**)blocks, 1); |