summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-09-07 10:08:23 +0000
committerjoerg <joerg@FreeBSD.org>1997-09-07 10:08:23 +0000
commitc79da43668adca756127cc0749cf456dea7d896d (patch)
tree19301064eb937797496c2b7df38f1aff8ecbc1fa /sys/scsi
parent730fc08d9523d4b2cb0109f6b83c35e7aa3fe14a (diff)
downloadFreeBSD-src-c79da43668adca756127cc0749cf456dea7d896d.zip
FreeBSD-src-c79da43668adca756127cc0749cf456dea7d896d.tar.gz
Silence the PREVENT ALLOW MEDIUM REMOVAL call.
Submitted by: jmattson@wco.com (Jim Mattson)
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/st.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 9f419e0..c731753 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id: st.c,v 1.79 1997/08/23 21:05:32 steve Exp $
+ * $Id: st.c,v 1.80 1997/09/02 20:06:38 bde Exp $
*/
/*
@@ -427,7 +427,8 @@ struct scsi_link *sc_link)
if ((flags & O_ACCMODE) == FWRITE)
st->flags |= ST_WRITTEN;
- scsi_prevent(sc_link, PR_PREVENT, 0); /* who cares if it fails? */
+ /* PREVENT ALLOW MEDIUM REMOVAL is optional per the SCSI-2 specs */
+ scsi_prevent(sc_link, PR_PREVENT, SCSI_SILENT | SCSI_ERR_OK);
SC_DEBUG(sc_link, SDEV_DB2, ("Open complete\n"));
OpenPOWER on IntegriCloud