summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/scsi/sd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index b7ddb293178..973165a045a 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.34 1999/07/22 23:06:51 deraadt Exp $ */
+/* $OpenBSD: sd.c,v 1.35 1999/07/23 06:17:09 deraadt Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*
@@ -609,7 +609,8 @@ sdstart(v)
* Fill out the scsi command. If the transfer will
* fit in a "small" cdb, use it.
*/
- if (((blkno & 0x1fffff) == blkno) &&
+ if (!(sc_link->flags & SDEV_ATAPI) &&
+ ((blkno & 0x1fffff) == blkno) &&
((nblks & 0xff) == nblks)) {
/*
* We can fit in a small cdb.