Date: Sun, 18 Jun 1995 15:56:35 -0400 (EDT) From: John Capo <jc@irbs.com> To: awebster@dataradio.com (Andrew Webster) Cc: freebsd-questions@freebsd.org Subject: Re: Retensioning tapes with mt Message-ID: <199506181956.PAA16285@irbs.irbs.com> In-Reply-To: <199506141937.PAA12555@vhf.dataradio.com> from "Andrew Webster" at Jun 14, 95 03:38:27 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Webster writes:
>
> I can't seem to find away to retension my tapes in an Archive 5252S drive
> connected to AHA-1542CF on 2.0-RELEASE. Is there another command besides
> mt that must be used to do this?
>
Here are my patches to add re-tensioning.
--
John Capo
*** sys/scsi/st.c.orig Sun Apr 9 16:29:50 1995
--- sys/scsi/st.c Sun Apr 9 16:40:47 1995
***************
*** 1237,1242 ****
--- 1237,1247 ----
case MTCOMP: /* enable default compression */
errcode = st_comp(unit,number);
break;
+
+ case MTRETEN: /* Re-tension tape */
+ errcode = st_load(unit, LD_RETEN, 0);
+ break;
+
default:
errcode = EINVAL;
}
*** usr.bin/mt/mt.1.orig Sun Apr 9 16:45:09 1995
--- usr.bin/mt/mt.1 Sun Apr 9 17:07:38 1995
***************
*** 89,94 ****
--- 89,97 ----
.It Cm erase
Erase the tape
(Count is ignored).
+ .It Cm retension
+ Re-tension the tape
+ (Count is ignored).
.It Cm status
Print status information about the tape unit.
.El
*** sys/sys/mtio.h.orig Sun Apr 9 16:28:26 1995
--- sys/sys/mtio.h Sun Apr 9 16:29:30 1995
***************
*** 79,84 ****
--- 79,85 ----
#define MTERASE 12 /* erase to EOM */
#define MTEOD 13 /* Space to EOM *//* lost the code for this */
#define MTCOMP 14 /* select compression mode 0=off, 1=def */
+ #define MTRETEN 15 /* retension tape */
#endif
*** usr.bin/mt/mt.c.orig Tue Apr 18 22:54:19 1995
--- usr.bin/mt/mt.c Sat Apr 22 10:51:53 1995
***************
*** 87,92 ****
--- 87,93 ----
{ "density", MTSETDNSTY, 0, NEED_2ARGS|ZERO_ALLOWED|IS_DENSITY },
{ "eom", MTEOD, 1 },
{ "comp", MTCOMP, 0, NEED_2ARGS|ZERO_ALLOWED },
+ { "retension", MTRETEN, 1 },
#endif /* defined(__FreeBSD__) */
{ NULL }
};
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506181956.PAA16285>
