summaryrefslogtreecommitdiffstats
path: root/sys/scsi/st.c
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/scsi/st.c
parent2b96a94f3f916652a47455a53bd5276040c543f0 (diff)
downloadFreeBSD-src-41bcdb612e6a863287c9e337911bcd7d4dba39f8.zip
FreeBSD-src-41bcdb612e6a863287c9e337911bcd7d4dba39f8.tar.gz
Implement the MTRETENS command.
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r--sys/scsi/st.c6
1 files changed, 5 insertions, 1 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;
OpenPOWER on IntegriCloud