summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-07-10 13:44:20 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-10 22:24:17 +0200
commitd69504325978c461b51b03cca49626026970307b (patch)
tree73ea1d68d5d3cca777cb6ea9828c5757b4cd6df8 /drivers/md/raid1.c
parent[PATCH] md: require CAP_SYS_ADMIN for (re-)configuring md devices via sysfs (diff)
downloadlinux-d69504325978c461b51b03cca49626026970307b.tar.xz
linux-d69504325978c461b51b03cca49626026970307b.zip
[PATCH] md: include sector number in messages about corrected read errors
This is generally useful, but particularly helps see if it is the same sector that always needs correcting, or different ones. [akpm@osdl.org: fix printk warnings] Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 5a479d692fac..1efe22a2d041 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1509,6 +1509,9 @@ static void raid1d(mddev_t *mddev)
s<<9, conf->tmppage, READ) == 0)
/* Well, this device is dead */
md_error(mddev, rdev);
+ else
+ printk(KERN_INFO "raid1:%s: read error corrected (%d sectors at %llu on %s)\n",
+ mdname(mddev), s, (unsigned long long)(sect + rdev->data_offset), bdevname(rdev->bdev, b));
}
}
} else {