>From: Julian Elischer <julian@jules.DIALix.oz.au>
authorRod Grimes <rgrimes@FreeBSD.org>
Mon, 11 Oct 1993 04:53:23 +0000 (04:53 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Mon, 11 Oct 1993 04:53:23 +0000 (04:53 +0000)
Subject: Re: Error reading from DAT (fwd)
Date: Mon, 11 Oct 1993 03:02:39 -40962758 (WST)

Some tapes won't do anything until you tell them to load.
Other tapes think that being asked to load is a great excuse to
make the next command return a "unit attention" (media changed) error.
Since we need to do the load, throw in a dummy instruction to cop the
error.

specifically for DEC DAT drives.

sys/scsi/st.c

index ea35b92..0b7dbf2 100644 (file)
  * 16 Feb 93   Julian Elischer         ADDED for SCSI system
  * 1.15 is the last verion to support MACH and OSF/1
  */
  * 16 Feb 93   Julian Elischer         ADDED for SCSI system
  * 1.15 is the last verion to support MACH and OSF/1
  */
-/* $Revision: 1.8 $ */
+/* $Revision: 1.9 $ */
 
 /*
  * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
  * major changes by Julian Elischer (julian@jules.dialix.oz.au) May 1993
  *
 
 /*
  * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
  * major changes by Julian Elischer (julian@jules.dialix.oz.au) May 1993
  *
- *     $Id: st.c,v 1.8 1993/09/07 15:58:00 rgrimes Exp $
+ *     $Id: st.c,v 1.9 1993/09/20 06:27:06 rgrimes Exp $
  */
 
 
  */
 
 
@@ -483,6 +483,7 @@ int dev, flags;
                {
                        return(errno);
                }
                {
                        return(errno);
                }
+               st_test_ready(unit,0);
                if(st->quirks & ST_Q_SNS_HLP)
                {
                        /***********************************************\
                if(st->quirks & ST_Q_SNS_HLP)
                {
                        /***********************************************\