raid6check.c: remove legacy code
PATCH 1/1 raid6check.c: remove legacy code
Hi all,
this patch will remove some legacy code. It is part of the verbosity "cleanup". In any case, if information about the P and Q parity mismatches is required, it should go inside the code handling page size blocks, not full stripe size.
Signed off: [email protected]
raid6check.c +1 -9
@@ -231,15 +231,7 @@ int check_stripes(struct mdinfo *info, i block_index_for_slot[diskP] = data_disks; blocks[data_disks+1 ] = stripes[diskQ]; block_index_for_slot[diskQ] = data_disks+1 ; -/* Do we really need the code below? */ -#if 0 -if (memcmp (p, stripes[diskP], chunk_size) !=0 ) { -printf ("P(%d) wrong at %llu\n" , diskP, start); - } -if (memcmp (q, stripes[diskQ], chunk_size) !=0 ) { -printf ("Q(%d) wrong at %llu\n" , diskQ, start); - } -#endif +raid6_collect (chunk_size, p, q, stripes[diskP], stripes[diskQ], results);raid6_stats (disk, results, raid_disks, chunk_size);
Signature · 1 line
piergiorgio