From owner-freebsd-bugs Wed Sep 12 14: 0:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B34E137B40C for ; Wed, 12 Sep 2001 14:00:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8CL02J92626; Wed, 12 Sep 2001 14:00:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 420ED37B406 for ; Wed, 12 Sep 2001 13:57:28 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8CKvS592321; Wed, 12 Sep 2001 13:57:28 -0700 (PDT) (envelope-from nobody) Message-Id: <200109122057.f8CKvS592321@freefall.freebsd.org> Date: Wed, 12 Sep 2001 13:57:28 -0700 (PDT) From: Farooq Mela To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/30536: burncd(8) doesn't wait long enough for CD-R's burning at high speed to spin down before trying to fixate the CD. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30536 >Category: misc >Synopsis: burncd(8) doesn't wait long enough for CD-R's burning at high speed to spin down before trying to fixate the CD. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 12 14:00:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Farooq Mela >Release: 4.4-RC >Organization: >Environment: FreeBSD apollo 4.4-RC FreeBSD 4.4-RC #4: Sun Jul 15 00:58:15 PDT 2001 farooq@apollo:/usr/src/sys/compile/APOLLO i386 >Description: While burning a CD-R at a 10x or 12x, burncd(8) does not wait long enough for the CD to spin down as soon as the burn is completed before issuing a fixate command. For example: # burncd -f /dev/acd1c -s 12 data file.iso fixate will burn the ISO image to the CD just fine, but for whatever reason (I believe it is because the CD is still spinning because this problem never occurs while burning at lower speeds - however I'm no expert in this matter), the CD-R is not yet ready to fixate the cd when burncd issues the fixate command, and then burncd errors out and exits without fixating the cd. >How-To-Repeat: dmesg reports this for my Pacific Digital 12x CD-R acd1: CD-RW at ata1-slave using PIO4 Issue the following command: # burncd -f /dev/acd1c -s 12 data file.iso fixate where acd1c is your CD-R and file.iso is an ISO image. On my system it usually happens that burncd will fail when trying to do an ioctl(cd_fd, CDRIOCCLOSEDISK) with errno=EBUSY. >Fix: To fix the problem, I made a simple change to /usr/src/usr.bin/burncd.c so that it tries 5 times to fixate the CD-R, with pauses in between. This fixes the problem on my system, however there may be different pause lengths or number of retries that are better for everybody else. The patch is available at: http://home.earthlink.net/~smela1/burncd.patch >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message