Add back in a prefatory TUR when the tape is *not* mounted. This seems

to help with some older tape drives.
This commit is contained in:
Matt Jacob 1999-12-04 01:13:59 +00:00
parent 0757c96050
commit 6af65c6902

View File

@ -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) {