diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-05-28 07:18:31 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-05-28 07:18:31 +0000 |
commit | 9b42ad54e3c5f0480a7e98dbd8762626296a4c6f (patch) | |
tree | 3089bfe2376646d1501e29f710f63d29cbafe74a | |
parent | 9da7f887d14574246cd67ea0a43eb42eeef7ad71 (diff) |
Use TEST_READY_RETRIES_TAPE instead of TEST_READY_RETRIES_DEFAULT,
thus allowing tape drives more time to become ready.
ok beck@
-rw-r--r-- | sys/scsi/st.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |