]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
raid6check.c: reduce verbosity
authorPiergiorgio Sartor <piergiorgio.sartor@nexgo.de>
Wed, 5 Feb 2014 19:18:45 +0000 (20:18 +0100)
committerNeilBrown <neilb@suse.de>
Wed, 5 Feb 2014 22:28:24 +0000 (09:28 +1100)
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-by: NeilBrown <neilb@suse.de>
raid6check.c

index 22b74cc1245059239a7d23a7136fb5e04823ad5d..b6cd9b4aedbfdf357f4acf66ff32f143766fe0d6 100644 (file)
@@ -228,15 +228,7 @@ int check_stripes(struct mdinfo *info, int *source, unsigned long long *offsets,
                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);