* [PATCH] raid6check.c: fix position printout
@ 2014-02-01 16:39 Piergiorgio Sartor
0 siblings, 0 replies; only message in thread
From: Piergiorgio Sartor @ 2014-02-01 16:39 UTC (permalink / raw)
To: linux-raid
This patch make a bit more clear
the position, in the disk, where
an error is found.
Signed off: piergiorgio.sartor@nexgo.de
diff -uNrp a/raid6check.c b/raid6check.c
--- a/raid6check.c 2014-02-01 16:56:14.123771170 +0100
+++ b/raid6check.c 2014-02-01 17:36:05.685667361 +0100
@@ -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);
}
}
--
piergiorgio
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-01 16:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01 16:39 [PATCH] raid6check.c: fix position printout 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).