summaryrefslogtreecommitdiffstats
path: root/sys/geom/nop
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-01-17 07:23:36 +0000
committerpjd <pjd@FreeBSD.org>2006-01-17 07:23:36 +0000
commitbe5920e3296a7aa43a242a0ea2ede819b9f02aae (patch)
tree195a03519cd8b06d1710585dfd412e48a91228a4 /sys/geom/nop
parenta80ec2a9b9b641d402a5098d617df928a677dd4f (diff)
downloadFreeBSD-src-be5920e3296a7aa43a242a0ea2ede819b9f02aae.zip
FreeBSD-src-be5920e3296a7aa43a242a0ea2ede819b9f02aae.tar.gz
Log situation when EIO is returned.
Diffstat (limited to 'sys/geom/nop')
-rw-r--r--sys/geom/nop/g_nop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c
index 6ab9fcc..aa927dc 100644
--- a/sys/geom/nop/g_nop.c
+++ b/sys/geom/nop/g_nop.c
@@ -96,6 +96,7 @@ g_nop_start(struct bio *bp)
rval = arc4random() % 100;
if (rval < sc->sc_failprob) {
+ G_NOP_LOGREQ(bp, "Returning EIO.");
g_io_deliver(bp, EIO);
return;
}
OpenPOWER on IntegriCloud