From owner-freebsd-current@FreeBSD.ORG Sat Dec 6 09:36:23 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 30B3316A4D3 for ; Sat, 6 Dec 2003 09:36:23 -0800 (PST) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 419DE43FAF for ; Sat, 6 Dec 2003 09:36:21 -0800 (PST) (envelope-from lefcha@hellug.gr) Received: from igloo.linux.gr (IDENT:1031@localhost [127.0.0.1]) hB6Hn9kh022732 for ; Sat, 6 Dec 2003 19:49:30 +0200 Received: (from lefcha@localhost) by igloo.linux.gr (8.12.10/8.12.10/Debian-2) id hB6HmxRX022726 for freebsd-current@freebsd.org; Sat, 6 Dec 2003 19:48:59 +0200 X-Authentication-Warning: igloo.linux.gr: lefcha set sender to lefcha@hellug.gr using -f Date: Sat, 6 Dec 2003 19:48:59 +0200 From: Lefteris Chatzibarbas To: freebsd-current@freebsd.org Message-ID: <20031206174859.GA22714@igloo.linux.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: 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: Sat, 06 Dec 2003 17:36:23 -0000 Hello, I have a problem when blanking a CD-RW (I think the problem first appeared when I started using ATAng but I am not sure). System is: FreeBSD bsd 5.2-BETA FreeBSD 5.2-BETA #0: Sat Dec 6 11:15:34 EET 2003 root@bsd:/usr/obj/usr/src/sys/CUSTOM i386 My CD-R/RW device is a TEAC CD-W524E: acd1: CDRW drive at ata1 as slave acd1: read 6890KB/s (6890KB/s) write 4134KB/s (4134KB/s), 1404KB buffer, UDMA33 acd1: Reads: CDR, CDRW, CDDA stream, packet acd1: Writes: CDR, CDRW, test write, burnproof acd1: Audio: play, 256 volume levels acd1: Mechanism: ejectable tray, unlocked acd1: Medium: no/blank disc The command I use to blank a CD-RW disc is: # burncd -f /dev/acd1 -s 10 blank The problem is that the "blanking CD, please wait.." message is printed, the CD-RW is blanked succesfully, but burncd never returns. After a little searching it seems that the program cannot get out of the while() loop at line 198 of src/usr.sbin/burncd/burncd.c: while (1) { sleep(1); if (ioctl(fd, CDRIOCGETPROGRESS, &pct) == -1) err(EX_IOERR,"ioctl(CDRIOGETPROGRESS)"); if (pct > 0 && !quiet) fprintf(stderr, "%sing CD - %d %% done \r", blank == CDR_B_ALL ? "eras" : "blank", pct); if (pct == 100 || (pct == 0 && last > 90)) break; last = pct; } The pct variable is always 0, even after the blanking of the CD-RW is finished (according to the device's LEDs), so the program falls into an infinite loop. Of course, hitting ^C exits burncd... Does anyone else has this problem? Is it specific to my CD-R/RW device? Thanks