Skip to contentSkip to conversation

raid6check.c: fix position printout

PATCH New Piergiorgio Sartor 1 participant 1 message Feb 1, 2014 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raid6check.c: fix position printout

This patch make a bit more clear
the position, in the disk, where
an error is found.

Signed off: [email protected]

raid6check.c +2 -2
diff -uNrp a/raid6check.c b/raid6check.c
@@ -237,11 +237,11 @@ int check_stripes(struct mdinfo *info, i
 				disk[j] = geo_map(disk[j], start, raid_disks, level, layout);
 			}
 			if(disk[j] >= 0) {
-				printf("Error detected at %llu, page %d: possible failed disk slot: %d --> %s\n",
+				printf("Error detected at stripe %llu, page %d: possible failed disk slot: %d --> %s\n",
 					start, j, disk[j], name[disk[j]]);
 			}
 			if(disk[j] == -65535) {
-				printf("Error detected at %llu, page %d: disk slot unknown\n", start, j);
+				printf("Error detected at stripe %llu, page %d: disk slot unknown\n", start, j);
 			}
 		}
 
Signature · 1 line
piergiorgio