summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1999-12-04 01:13:59 +0000
committermjacob <mjacob@FreeBSD.org>1999-12-04 01:13:59 +0000
commit6d5159c5176d72a2019f42ffe18bb9aa9c6c202b (patch)
treec8d8f881af1d0ab68f735fbba3e41ce7ea3c3b9d /sys/cam/scsi
parent1e21c81f90948feec1deaacb5114a0c4b71e8d83 (diff)
downloadFreeBSD-src-6d5159c5176d72a2019f42ffe18bb9aa9c6c202b.zip
FreeBSD-src-6d5159c5176d72a2019f42ffe18bb9aa9c6c202b.tar.gz
Add back in a prefatory TUR when the tape is *not* mounted. This seems
to help with some older tape drives.
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_sa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c
index c5bed36..20736b9 100644
--- a/sys/cam/scsi/scsi_sa.c
+++ b/sys/cam/scsi/scsi_sa.c
@@ -1768,6 +1768,11 @@ samount(struct cam_periph *periph, int oflags, dev_t dev)
return (error);
}
ccb = cam_periph_getccb(periph, 1);
+ scsi_test_unit_ready(&ccb->csio, 0, sadone,
+ MSG_SIMPLE_Q_TAG, SSD_FULL_SIZE, 5 * 60 * 1000);
+ error = cam_periph_runccb(ccb, saerror, 0, SF_NO_PRINT,
+ &softc->device_stats);
+ QFRLS(ccb);
}
if ((softc->flags & SA_FLAG_TAPE_MOUNTED) == 0) {
OpenPOWER on IntegriCloud