]> git.ipfire.org Git - thirdparty/mdadm.git/commit
raid6check: get device ordering correct for syndrome calculation.
authorNeilBrown <neilb@suse.de>
Thu, 16 Jul 2015 01:25:40 +0000 (11:25 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 16 Jul 2015 01:25:40 +0000 (11:25 +1000)
commit76cd79d3d19917a3d1b08310b7351f22c16e42ab
tree6ee0010a6f20419d33daeaeed795136ad5ab338c
parent0832fb09d91515ced206f5459f0015492b4cc10c
raid6check: get device ordering correct for syndrome calculation.

The order of devices used for the syndrome calculation is not
the same as the order of data in the array.
The D block immediately after Q is first, then they continue
cyclicly in raid-disk order, skipping over the P disk if it is seen.

This gets the 'check' right for all layouts other than DDF, which is
quite different.

I haven't confirmed that this does't break repair.

Signed-off-by: NeilBrown <neilb@suse.de>
raid6check.c