From: "Hardy Flor" <Flor@ptbl-gmbh.de>
To: neilb@suse.de
Cc: linux-raid@vger.kernel.org
Subject: mini change of raid5.c
Date: Wed, 09 Nov 2011 11:05:01 +0100 [thread overview]
Message-ID: <4EBA5E5D0200004000001B21@ptbl-mail.dnsalias.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
Hello Mr Brown,
can you please transmit this small change to the file raid5.c? There is
thus a rapid repair of a raid6 possible, using only the defective areas
must be checked. This change writes only the error position in the log
during the function "check".
Kind regards
Hardy Flor
[-- Attachment #2: raid5.c.diff --]
[-- Type: application/octet-stream, Size: 1097 bytes --]
--- raid5.c.org 2011-08-29 22:56:30.000000000 +0200
+++ raid5.c 2011-11-09 10:43:45.000000000 +0100
@@ -2738,6 +2738,11 @@
*/
set_bit(STRIPE_INSYNC, &sh->state);
else {
+ printk(KERN_WARNING
+ "md/raid:%s: mismatch (level %d) with %d disks, %lu sectors @ %llu P-Disk:%d Q-Disk:%d\n",
+ mdname(conf->mddev), conf->level,
+ conf->raid_disks, STRIPE_SECTORS, (unsigned long long) sh->sector,
+ sh->pd_idx, sh->qd_idx);
conf->mddev->resync_mismatches += STRIPE_SECTORS;
if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery))
/* don't try to repair!! */
@@ -2890,6 +2895,11 @@
*/
}
} else {
+ printk(KERN_WARNING
+ "md/raid:%s: mismatch (level %d) with %d disks, %lu sectors @ %llu P-Disk:%d Q-Disk:%d\n",
+ mdname(conf->mddev), conf->level,
+ conf->raid_disks, STRIPE_SECTORS, (unsigned long long) sh->sector,
+ sh->pd_idx, sh->qd_idx);
conf->mddev->resync_mismatches += STRIPE_SECTORS;
if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery))
/* don't try to repair!! */
next reply other threads:[~2011-11-09 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 10:05 Hardy Flor [this message]
2011-11-09 22:15 ` mini change of raid5.c NeilBrown
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=4EBA5E5D0200004000001B21@ptbl-mail.dnsalias.net \
--to=flor@ptbl-gmbh.de \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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).