From owner-freebsd-current@FreeBSD.ORG Tue Dec 30 14:44:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 664ED16A4CE for ; Tue, 30 Dec 2003 14:44:22 -0800 (PST) Received: from forthnet.gr (athmta01.forthnet.gr [193.92.150.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F28B43D5D for ; Tue, 30 Dec 2003 14:44:19 -0800 (PST) (envelope-from lefcha@hellug.gr) Received: from localhost.my.domain (ppp1-isdn-168.the.forthnet.gr [213.16.246.168]) by forthnet.gr (8.12.2-20030919/8.12.2) with ESMTP id hBUMiGdg022607; Wed, 31 Dec 2003 00:44:16 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.12.10/8.12.10) with ESMTP id hBUMiHg9011073; Wed, 31 Dec 2003 00:44:18 +0200 (EET) (envelope-from lefcha@hellug.gr) Received: (from lefcha@localhost) by localhost.my.domain (8.12.10/8.12.10/Submit) id hBUMiCiI011072; Wed, 31 Dec 2003 00:44:12 +0200 (EET) (envelope-from lefcha@hellug.gr) X-Authentication-Warning: localhost.my.domain: lefcha set sender to lefcha@hellug.gr using -f Date: Wed, 31 Dec 2003 00:44:12 +0200 From: Lefteris Chatzibarbas To: Soren Schmidt Message-ID: <20031230224412.GA10958@bsd> References: <20031209143426.GA19683@igloo.linux.gr> <200312092008.hB9K80SK092613@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312092008.hB9K80SK092613@spider.deepcore.dk> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: burncd(8) CD-RW blanking problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 22:44:22 -0000 On Tue, Dec 09, 2003 at 09:08:00PM +0100, Soren Schmidt wrote: > It seems Lefteris Chatzibarbas wrote: > > > I'm seeing this too. What's odd is that my cd drive is reporting back > > > incorrect sense information; the valid bit is not set, the asc/ascq is > > > suspect (4/8), and the sense key specific data is all 0. Since other > > > fields in the sense data are reasonable, it's not as if no sense data is > > > being returned at all. So it looks like the CDRIOGETPROGRESS ioctl > > > handler is doing the right thing, but the cd drive is not. Maybe the > > > driver is doing something wrong when it issues the erase command, but > > > I can't convince myself that that is likely. > > > > The attached patch seems to correct the problem (at least for me). It > > is similar to what was done in revision 1.137 of sys/dev/ata/atapi-cd.c > > (this has been changed since revision 1.138). > > Uh oh, that code breaks on lots of newer drives, especially DVD writers > and drives of SONY origin. There was a reason that code was removed :) I guess those DVD writers do not return EBUSY, and burncd returns before the drive has finished blanking? Are CD-R(W) drives, like my TEAC CD-W524E, buggy, not returning correct sense information (progress)? Or is it a -maybe hard to find- software bug? Should I file a PR? Thanks a lot for answering any of these questions... PS. I added the atapicam driver to the kernel, and I now use cdrecord for the job...