summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid3
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-08-25 19:18:07 +0000
committerpjd <pjd@FreeBSD.org>2004-08-25 19:18:07 +0000
commit18cd87588568d5002f1f861a39f490045ed4bb37 (patch)
tree4d0a56b1db02926d98f50c964d763e7590e33e5e /sys/geom/raid3
parent4de2140db03d6107217a0d578a03accd9dda4c0c (diff)
downloadFreeBSD-src-18cd87588568d5002f1f861a39f490045ed4bb37.zip
FreeBSD-src-18cd87588568d5002f1f861a39f490045ed4bb37.tar.gz
Log verification errors at level 1.
Diffstat (limited to 'sys/geom/raid3')
-rw-r--r--sys/geom/raid3/g_raid3.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c
index 262727b..c4113aa 100644
--- a/sys/geom/raid3/g_raid3.c
+++ b/sys/geom/raid3/g_raid3.c
@@ -1060,8 +1060,12 @@ g_raid3_gather(struct bio *pbp)
finish:
if (pbp->bio_error == 0)
G_RAID3_LOGREQ(3, pbp, "Request finished.");
- else
- G_RAID3_LOGREQ(0, pbp, "Request failed.");
+ else {
+ if ((pbp->bio_pflags & G_RAID3_BIO_PFLAG_VERIFY) != 0)
+ G_RAID3_LOGREQ(1, pbp, "Verification error.");
+ else
+ G_RAID3_LOGREQ(0, pbp, "Request failed.");
+ }
pbp->bio_pflags &= ~G_RAID3_BIO_PFLAG_MASK;
g_io_deliver(pbp, pbp->bio_error);
while ((cbp = G_RAID3_HEAD_BIO(pbp)) != NULL)
OpenPOWER on IntegriCloud