From owner-freebsd-hackers Sat Sep 2 21:58:21 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA05055 for hackers-outgoing; Sat, 2 Sep 1995 21:58:21 -0700 Received: from starfire.mn.org (starfire.skypoint.net [199.86.32.187]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id VAA05040 for ; Sat, 2 Sep 1995 21:58:18 -0700 From: john@starfire.mn.org Received: (from john@localhost) by starfire.mn.org (8.6.11/1.1) id XAA00505; Sat, 2 Sep 1995 23:58:06 -0500 Message-Id: <199509030458.XAA00505@starfire.mn.org> Subject: Re: mt(1) erase not working on wt driver in FreeBSD-stable To: julian@ref.tfs.com (Julian Elischer) Date: Sat, 2 Sep 1995 23:58:05 -0500 (CDT) Cc: hackers@FreeBSD.org (FreeBSD hackers) In-Reply-To: <199509030232.TAA05567@ref.tfs.com> from "Julian Elischer" at Sep 2, 95 07:32:38 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: 937 Sender: hackers-owner@FreeBSD.org Precedence: bulk Julian Elischer wrote: > the wt driver needs to be educated about the generic tape > version of the same call.. > (which didn't previously exist, hense the special one) Umm, but, I'd been using it quite happily in FreeBSD 1.1.5... In fact, I was rather surprised that it didn't work, since I was accustomed to using it. Hmmm. Also, the code for it was defined in the /usr/include/sys/mtio.h. It is right under an undated comment from Andreas and in a section only compiled for FreeBSD. Anyway, it was trivial to add to the wt driver. I lifted the code nearly verbatim from the QIC-specific call, dropped it into the BSD-mt section, and it works great. Shall I submit a diff? > >... > > direction. Otherwise, in a nutshell: > > dexter# mt -f /dev/rwt0 era > > mt: /dev/rwt0: erase: Invalid argument > >... John Lind, Starfire Consulting Services E-mail: john@starfire.MN.ORG USnail: PO Box 17247, Mpls MN 55417