Do not test_unit_ready() before starting the unit...

This commit is contained in:
Joerg Wunsch 1996-08-17 20:50:26 +00:00
parent b011f9fd8f
commit e7e3f60d66

View File

@ -28,7 +28,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* $Id: od.c,v 1.19 1996/07/23 21:52:22 phk Exp $
* $Id: od.c,v 1.20 1996/08/02 06:10:48 peter Exp $
*/
/*
@ -332,6 +332,12 @@ od_open(dev, mode, fmt, p, sc_link)
("od_open: dev=0x%lx (unit %ld, partition %d)\n",
dev, unit, PARTITION(dev)));
/*
* Try to start the drive (ignore failure).
*/
scsi_start_unit(sc_link, SCSI_ERR_OK | SCSI_SILENT);
scsi_prevent(sc_link, PR_PREVENT, SCSI_ERR_OK | SCSI_SILENT);
/*
* Try to clear "Unit Attention" condition, when media had
* been changed before.
@ -340,12 +346,6 @@ od_open(dev, mode, fmt, p, sc_link)
*/
scsi_test_unit_ready(sc_link, SCSI_SILENT);
/*
* Try to start the drive (ignore failure).
*/
scsi_start_unit(sc_link, SCSI_ERR_OK | SCSI_SILENT);
scsi_prevent(sc_link, PR_PREVENT, SCSI_ERR_OK | SCSI_SILENT);
SC_DEBUG(sc_link, SDEV_DB3, ("'start' attempted "));
sc_link->flags |= SDEV_OPEN; /* unit attn becomes an err now */