mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Implement the MTRETENS command.
This commit is contained in:
parent
830a0f5d3a
commit
3e0123a3e2
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user