summaryrefslogtreecommitdiff
path: root/sys/scsi/ss.c
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2002-12-30 21:50:30 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2002-12-30 21:50:30 +0000
commitf42b75705cee14f2b28c309ad80c9f9924d0771b (patch)
treeac588c5b1b609712beca44d9cbc887e58ba8662d /sys/scsi/ss.c
parent0b5fa73158ff68f27d1b67abfcc38579b2e82ea3 (diff)
Add new parameter to scsi_test_unit_ready(): retries number.
Use increased retries number and don't ignore SCSI_IGNORE_NOT_READY when call scsi_test_unit_ready() for cd-rom, this makes system wait if drive is loading media. Tested by millert@ and fgsch@; some input and ok from krw@. Problem reported by The lord of the CD-writers Igor Grabin <violent@death.kiev.ua>.
Diffstat (limited to 'sys/scsi/ss.c')
-rw-r--r--sys/scsi/ss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c
index fb100c70916..0b5e6cb4188 100644
--- a/sys/scsi/ss.c
+++ b/sys/scsi/ss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss.c,v 1.46 2002/06/09 00:05:57 art Exp $ */
+/* $OpenBSD: ss.c,v 1.47 2002/12/30 21:50:29 grange Exp $ */
/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
@@ -436,7 +436,7 @@ ssopen(dev, flag, mode, p)
* consider paper to be a changeable media
*
*/
- error = scsi_test_unit_ready(sc_link,
+ error = scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_DEFAULT,
SCSI_IGNORE_MEDIA_CHANGE | SCSI_IGNORE_ILLEGAL_REQUEST |
(ssmode == MODE_CONTROL ? SCSI_IGNORE_NOT_READY : 0));
if (error)