From owner-freebsd-stable Mon Mar 15 0: 0:54 1999 Delivered-To: freebsd-stable@freebsd.org Received: from fw.bby.com.au (ns.bby.com.au [192.83.119.129]) by hub.freebsd.org (Postfix) with ESMTP id E697A151CE for ; Mon, 15 Mar 1999 00:00:01 -0800 (PST) (envelope-from gnb@itga.com.au) Received: (from daemon@localhost) by fw.bby.com.au (8.8.8/8.6.9) id SAA25580; Mon, 15 Mar 1999 18:59:37 +1100 (EST) Received: from lightning.itga.com.au(192.168.71.20) via SMTP by fw.bby.com.au, id smtpd025578; Mon Mar 15 07:59:36 1999 Received: from lightning (lightning [192.168.71.20]) by lightning.itga.com.au (8.9.1a/8.9.1) with ESMTP id SAA02992; Mon, 15 Mar 1999 18:59:35 +1100 (EST) Message-Id: <199903150759.SAA02992@lightning.itga.com.au> X-Mailer: exmh version 2.0.1 12/23/97 From: Gregory Bond To: stable@FreeBSD.ORG Cc: jwdare@novia.net (J.W. Dare) Subject: Workaround: Re: acd1: rezero failed In-reply-to: Your message of Fri, 12 Mar 1999 14:31:34 +1100. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 Mar 1999 18:59:35 +1100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG With a bit more poking around, I have made the HP 8100 work with the acd driver. For some reason, the 8100 dislikes the ATAPI REZERO_UNIT command that acdopen() sends when in write mode. Yet it seems the HP 7200 has no problems with the same code. I've asked HP for any hints as to why the 8100 is different but they have not yet had time to reply (and I don't expect much joy, frankly). The following patch makes the CD-R/CD-RW bit work (as far as I can tell from my brief testing). I don't know all that much about the nitty-gritty of ATAPI so I don't know if this has any deadly consequences.... [btw: submitted as pr kern/dunno-yet] *** ./sys/i386/isa/atapi-cd.c.dist Mon Jan 4 10:13:22 1999 --- ./sys/i386/isa/atapi-cd.c Mon Mar 15 16:51:44 1999 *************** *** 399,405 **** /* read/write */ if (acd_rezero_unit(cdp)) { printf("acd%d: rezero failed\n", lun); ! return EIO; } } else { /* read only */ --- 399,405 ---- /* read/write */ if (acd_rezero_unit(cdp)) { printf("acd%d: rezero failed\n", lun); ! /* return EIO; */ } } else { /* read only */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message