From owner-freebsd-hackers Fri Oct 25 03:53:19 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA08520 for hackers-outgoing; Fri, 25 Oct 1996 03:53:19 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA08483 for ; Fri, 25 Oct 1996 03:53:07 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id AAA15577 for ; Fri, 25 Oct 1996 00:53:59 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA18358; Fri, 25 Oct 1996 09:51:32 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA06642; Fri, 25 Oct 1996 09:51:32 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id JAA07964; Fri, 25 Oct 1996 09:30:17 +0200 (MET DST) From: J Wunsch Message-Id: <199610250730.JAA07964@uriah.heep.sax.de> Subject: Re: SCSI tape drive density codes and block sizes...? To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Fri, 25 Oct 1996 09:30:17 +0200 (MET DST) Cc: pst@jnx.com (Paul Traina) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199610250109.SAA04642@base.jnx.com> from Paul Traina at "Oct 24, 96 06:09:25 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Paul Traina wrote: > What exactly do the density codes for my DDS2 (HP C1533A) tape drive mean? > What density code do I want to be using? > > Present Mode: Density = 0x24 Blocksize variable The tape density modes that are known to mt(1) by name are those mentioned in the SCSI-2 specs. Since these specs are a little aging these days, most modern drives needed additional mode values. You normally don't want to change it. I think the driver should normally not even try to handle them at all, but always use the default density and blocksize. However, right now the driver insists on always setting density and blocksize. Half of our tape-drive related `quirk' records would probably not really needed. Things are a little different if you've for example got a QIC-24 (60 MB) cartridge in a QIC drive that would be misdetected as QIC-150, you want to override the density value in this case for proper operation. For DDS drives with the ``media recognition system'', the cassettes are supposed to be detected properly. Some HP guy told me that DOS software often uses fixed-length records even for DAT. So if you encounter such a tape, you might want to adjust your tape driver, too. Unixoides normally use variable-length records however (wherever supported by the hardware, i.e. with QIC >= 525, DAT, Exabyte 8 mm etc.), so that's the default for these drives. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)