From owner-freebsd-hackers Sun May 19 07:14:49 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA27491 for hackers-outgoing; Sun, 19 May 1996 07:14:49 -0700 (PDT) Received: from linux4nn.gn.iaf.nl (root@linux4nn.gn.iaf.nl [193.67.144.34]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA27486 for ; Sun, 19 May 1996 07:14:44 -0700 (PDT) Received: from uni4nn.iaf.nl (root@uni4nn.iaf.nl [193.67.144.33]) by linux4nn.gn.iaf.nl (8.6.9/8.6.9) with SMTP id QAA08875 for ; Sun, 19 May 1996 16:14:42 +0200 Received: by uni4nn.iaf.nl with UUCP id AA21239 (5.67b/IDA-1.5 for FreeBSD-hackers@freebsd.org); Sun, 19 May 1996 16:14:31 +0200 Received: by iafnl.es.iaf.nl with UUCP id AA12842 (5.67b/IDA-1.5 for FreeBSD-hackers@freebsd.org); Sun, 19 May 1996 15:32:33 +0200 Received: (from wilko@localhost) by yedi.iaf.nl (8.6.12/8.6.6) id UAA21673 for FreeBSD-hackers@freebsd.org; Sat, 18 May 1996 20:00:48 +0200 From: Wilko Bulte Message-Id: <199605181800.UAA21673@yedi.iaf.nl> X-Organisation: Private FreeBSD site - Arnhem - The Netherlands Subject: limitation in st.c, should not be there? To: FreeBSD-hackers@freebsd.org (FreeBSD hackers list) Date: Sat, 18 May 1996 20:00:47 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi there, In 2.1R st.c there is a line that reads: #define SCSI_2_MAX_DENSITY_CODE 0x17 /* maximum density code specified * in SCSI II spec. */ In it's own right this is OK, but it also is a (unwanted??) limitation. I stumbled across it when I wanted to set my DLT drive to use hardware compression. It can be set to do compression using 0x81 as density. This is of course vendor specific, and not according to SCSI-2 (as far as I can see). On the other hand the driver effectively blocks you in setting up the drive. Is there any reason to keep this check in the st.c? If you send an invalid (for that particular tape device) value you will get a reject anyway, flagging an invalid request. Comments? _ __________________________________________________________________________ | / o / / _ Wilko Bulte email: wilko@yedi.iaf.nl |/|/ / / /( (_) Private FreeBSD site - Arnhem - The Netherlands --------------------------------------------------------------------------------