summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-08-17 20:50:26 +0000
committerjoerg <joerg@FreeBSD.org>1996-08-17 20:50:26 +0000
commit56678549f3565e8824ce4dac32419c580ada8a1c (patch)
tree5cbb5745450ee5d46f7e481b1b3b45fb1686838d /sys
parentd489b09360f37e44317d4751e6ae9a22152a8115 (diff)
downloadFreeBSD-src-56678549f3565e8824ce4dac32419c580ada8a1c.zip
FreeBSD-src-56678549f3565e8824ce4dac32419c580ada8a1c.tar.gz
Do not test_unit_ready() before starting the unit...
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/od.c14
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 */
OpenPOWER on IntegriCloud