From 3e0123a3e2351b46fa37d94d11f8869a700faee4 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 8 Jan 1996 12:26:15 +0000 Subject: [PATCH] Implement the MTRETENS command. --- sys/scsi/st.c | 6 +++++- sys/sys/mtio.h | 8 +++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 4bfe3e6a7302..bd91ccc1f8ed 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 8dbdd8b1f4e1..01ef593cd70b 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 -*/ #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