From 9b42ad54e3c5f0480a7e98dbd8762626296a4c6f Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 28 May 2006 07:18:31 +0000 Subject: Use TEST_READY_RETRIES_TAPE instead of TEST_READY_RETRIES_DEFAULT, thus allowing tape drives more time to become ready. ok beck@ --- sys/scsi/st.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 3161bf11a0a..13822023e5d 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -1,4 +1,4 @@ -/* $OpenBSD: st.c,v 1.54 2006/05/28 07:07:09 krw Exp $ */ +/* $OpenBSD: st.c,v 1.55 2006/05/28 07:18:30 krw Exp $ */ /* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */ /* @@ -507,7 +507,7 @@ stopen(dev, flags, fmt, p) /* * Catch any unit attention errors. */ - error = scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_DEFAULT, + error = scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_TAPE, SCSI_IGNORE_MEDIA_CHANGE | SCSI_IGNORE_ILLEGAL_REQUEST | ((fmt == S_IFCHR) ? SCSI_SILENT : 0)); if (error && (fmt != S_IFCHR)) @@ -633,7 +633,7 @@ st_mount_tape(dev, flags) * (noteably some DAT drives) */ /* XXX */ - scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_DEFAULT, SCSI_SILENT); + scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_TAPE, SCSI_SILENT); /* * Some devices can't tell you much until they have been -- cgit v1.2.3