diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/od.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/scsi/od.c b/sys/scsi/od.c index c97ec1f..9fefeb5 100644 --- a/sys/scsi/od.c +++ b/sys/scsi/od.c @@ -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 $ */ /* @@ -333,6 +333,12 @@ od_open(dev, mode, fmt, p, sc_link) 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. * This operation also clears the SDEV_MEDIA_LOADED flag in its @@ -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 */ |