aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2003-06-16 07:50:17 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2003-06-16 07:50:17 +0000
commitf79981aca8c2d050878e8c491eee89e69d8518af (patch)
treea3158710994b65d9904886673d017e5de25b0725 /sys/dev/fdc
parent2ca77c355d56843700e35eb8b412b43b50917898 (diff)
Notes
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 2d835a01a4496..759939241bc4e 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1671,7 +1671,10 @@ fdstrategy(struct bio *bp)
fdc = fd->fdc;
bp->bio_resid = bp->bio_bcount;
if (fd->type == FDT_NONE || fd->ft == 0) {
- bp->bio_error = ENXIO;
+ if (fd->type != FDT_NONE && (fd->flags & FD_NONBLOCK))
+ bp->bio_error = EAGAIN;
+ else
+ bp->bio_error = ENXIO;
bp->bio_flags |= BIO_ERROR;
goto bad;
}