From 4cf67afe37bf78d7ec01d4e68359abe6dbbdf6bf Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Wed, 25 Aug 2004 19:18:07 +0000 Subject: [PATCH] Log verification errors at level 1. --- sys/geom/raid3/g_raid3.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c index 262727b50ed..c4113aa9204 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)