]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid6 algorithms: improve test program
authorMarkus Stockhausen <stockhausen@collogia.de>
Mon, 15 Dec 2014 01:57:04 +0000 (12:57 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 8 Apr 2015 02:57:54 +0000 (12:57 +1000)
commita02c6ddcf4a8f38e3aac7e89e6ec0a0efc788226
tree7affd8c9e074f2cd56c3b102b684a05bc82bafc4
parent47fc9eb259ed764fae80760c6a92f77954514efb
md/raid6 algorithms: improve test program

It is always helpful to have a test tool in place if we implement
new data critical algorithms. So add some test routines to the raid6
checker that can prove if the new xor_syndrome() works as expected.

Run through all permutations of start/stop pages per algorithm and
simulate a xor_syndrome() assisted rmw run. After each rmw check if
the recovery algorithm still confirms that the stripe is fine.

Signed-off-by: Markus Stockhausen <stockhausen@collogia.de>
Signed-off-by: NeilBrown <neilb@suse.de>
lib/raid6/test/test.c