From: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
To: linux-raid@vger.kernel.org
Subject: [PATCH] raid6check.c: fix position printout
Date: Sat, 1 Feb 2014 17:39:27 +0100 [thread overview]
Message-ID: <20140201163927.GA16976@lazy.lzy> (raw)
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
reply other threads:[~2014-02-01 16:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140201163927.GA16976@lazy.lzy \
--to=piergiorgio.sartor@nexgo.de \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).