From owner-freebsd-current Tue Dec 15 20:48:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA21244 for freebsd-current-outgoing; Tue, 15 Dec 1998 20:48:46 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA21239 for ; Tue, 15 Dec 1998 20:48:45 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id UAA03988; Tue, 15 Dec 1998 20:45:59 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpddR3986; Wed Dec 16 04:45:54 1998 Message-ID: <36773AFE.4487EB71@whistle.com> Date: Tue, 15 Dec 1998 20:45:50 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.7-RELEASE i386) MIME-Version: 1.0 To: mjacob@feral.com CC: freebsd-current@FreeBSD.ORG Subject: Re: Tape Driver Changes Proposed: Variable Mode as default References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Jacob wrote: > > I'm still processing and munching on the responses from the last call on > this- but closure is pretty close- in the interim, here's one that should > be less controversial: > > + forcing variable mode for tape devices unless quirked otherwise > > Do people have an opinion on this? In my original tape driver the default was not fixed, but rather, depended on a heuristic.. Most formats (e.g. QIC) in those days used a fixed mode, though variable mode was becoming more common. (as it had been originally in the 1/2 inch days) If you look in st.c (in 2.2) you should still see the heuristic code that decides which is the most likely default to use. Certainly it depended on the reported format of the drive. Ultimatly if there is a quirk for the drive you allow that to over-ride the default and a user can over-ride the quirk. You should ask the drive immediatly when asked to set a density, and return an error if the drive is not co-operative. I selected 4 sub devices for the tape driver to allow 4 easily available preselected modes and formats. I found this a great thing when presented with a drive that could do several formats or densities. I just used different subdevices to write the density I required. I presume you have looked at st.c in the old scsi system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message