* [PATCH] raid6check.c: fix Q parity generation
@ 2014-02-01 21:16 Piergiorgio Sartor
0 siblings, 0 replies; only message in thread
From: Piergiorgio Sartor @ 2014-02-01 21:16 UTC (permalink / raw)
To: linux-raid
In the transition to 4K page processing,
the Q parity generation had a wrong offset
in the buffer.
This patche fix this.
Signed off: piergiorgio.sartor@nexgo.de
diff -uNrp a/raid6check.c b/raid6check.c
--- a/raid6check.c 2014-02-01 17:36:05.685667361 +0100
+++ b/raid6check.c 2014-02-01 22:12:15.069189406 +0100
@@ -346,7 +346,7 @@ int check_stripes(struct mdinfo *info, i
blocks_page[i] = blocks[i] + j * CHECK_PAGE_SIZE;
}
if (disk[j] == diskQ) {
- qsyndrome(p, (uint8_t*)stripes[diskQ], (uint8_t**)blocks_page, data_disks, CHECK_PAGE_SIZE);
+ qsyndrome(p, (uint8_t*)stripes[diskQ] + j * CHECK_PAGE_SIZE, (uint8_t**)blocks_page, data_disks, CHECK_PAGE_SIZE);
} else {
char *all_but_failed_blocks[data_disks];
int failed_block_index = block_index_for_slot[disk[j]];
--
piergiorgio
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-01 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01 21:16 [PATCH] raid6check.c: fix Q parity generation Piergiorgio Sartor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).