From owner-freebsd-questions Sun Jun 18 12:56:58 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA00479 for questions-outgoing; Sun, 18 Jun 1995 12:56:58 -0700 Received: from irbs.irbs.com (irbs.com [199.182.75.129]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id MAA00471 for ; Sun, 18 Jun 1995 12:56:55 -0700 Received: (from jc@localhost) by irbs.irbs.com (8.6.11/8.6.6) id PAA16285; Sun, 18 Jun 1995 15:56:36 -0400 From: John Capo Message-Id: <199506181956.PAA16285@irbs.irbs.com> Subject: Re: Retensioning tapes with mt To: awebster@dataradio.com (Andrew Webster) Date: Sun, 18 Jun 1995 15:56:35 -0400 (EDT) Cc: freebsd-questions@freebsd.org In-Reply-To: <199506141937.PAA12555@vhf.dataradio.com> from "Andrew Webster" at Jun 14, 95 03:38:27 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1750 Sender: questions-owner@freebsd.org Precedence: bulk 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 } };