summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-01-08 12:26:15 +0000
committerjoerg <joerg@FreeBSD.org>1996-01-08 12:26:15 +0000
commit41bcdb612e6a863287c9e337911bcd7d4dba39f8 (patch)
tree8f0e949b5427f9ed809d98c238de5c226f0748df /sys
parent2b96a94f3f916652a47455a53bd5276040c543f0 (diff)
downloadFreeBSD-src-41bcdb612e6a863287c9e337911bcd7d4dba39f8.zip
FreeBSD-src-41bcdb612e6a863287c9e337911bcd7d4dba39f8.tar.gz
Implement the MTRETENS command.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/st.c6
-rw-r--r--sys/sys/mtio.h8
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 4bfe3e6..bd91ccc 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.55 1995/12/14 09:54:33 phk Exp $
+ * $Id: st.c,v 1.56 1996/01/05 20:12:51 wollman Exp $
*/
/*
@@ -1151,6 +1151,10 @@ struct proc *p, struct scsi_link *sc_link)
case MTERASE: /* erase */
errcode = st_erase(unit, FALSE, flags);
break;
+ case MTRETENS: /* re-tension tape */
+ errcode = st_load(unit, LD_LOAD|LD_RETEN,
+ flags);
+ break;
case MTOFFL: /* rewind and put the drive offline */
st_unmount(unit, EJECT);
break;
diff --git a/sys/sys/mtio.h b/sys/sys/mtio.h
index 8dbdd8b..01ef593 100644
--- a/sys/sys/mtio.h
+++ b/sys/sys/mtio.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mtio.h 8.1 (Berkeley) 6/2/93
- * $Id: mtio.h,v 1.4 1994/10/28 13:19:42 jkh Exp $
+ * $Id: mtio.h,v 1.5 1995/03/21 11:21:37 dufault Exp $
*/
#ifndef _SYS_MTIO_H_
@@ -73,12 +73,10 @@ struct mtop {
#define MTSETDNSTY 11
-/*
-** Tape erase function - AKL: Andreas Klemm <andreas@knobel.gun.de>
-*/
#define MTERASE 12 /* erase to EOM */
-#define MTEOD 13 /* Space to EOM *//* lost the code for this */
+#define MTEOD 13 /* Space to EOM */
#define MTCOMP 14 /* select compression mode 0=off, 1=def */
+#define MTRETENS 15 /* re-tension tape */
#endif
OpenPOWER on IntegriCloud