diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-23 06:17:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-23 06:17:10 +0000 |
commit | dc28cebecdc25997c831cbf8fbcd8e7e54e5de82 (patch) | |
tree | 9aa25fb884930ded52f65e16d0682da0fc25819f | |
parent | 4d52ecba6d03aa6613209d682e36a35c13f1719f (diff) |
use READ_BIG for atapi; LS-120 works now
-rw-r--r-- | sys/scsi/sd.c | 5 |
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. |