1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154459

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