Log situation when EIO is returned.

This commit is contained in:
Pawel Jakub Dawidek 2006-01-17 07:23:36 +00:00
parent 54df0743c7
commit 58d85f544f

View File

@ -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;
}