From owner-freebsd-current Sun Jan 16 12:33:28 2000 Delivered-To: freebsd-current@freebsd.org Received: from 1Cust74.tnt1.washington.dc.da.uu.net (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id C37FE14BE6; Sun, 16 Jan 2000 12:33:23 -0800 (PST) (envelope-from green@FreeBSD.org) Date: Sun, 16 Jan 2000 15:33:21 -0500 (EST) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Bryan Liesner Cc: sos@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: ATA CD-R problems, still... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Can you try this patch to src/usr.sbin/burncd, and see if things work after that? Thanks! (BTW, there's also an extra feature in there, hope you don't mind :) -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' Index: burncd.c =================================================================== RCS file: /usr2/ncvs/src/usr.sbin/burncd/burncd.c,v retrieving revision 1.4 diff -u -r1.4 burncd.c --- burncd.c 2000/01/15 15:51:47 1.4 +++ burncd.c 2000/01/16 03:56:18 @@ -38,8 +38,9 @@ #include #include #include +#include -#define BLOCKS 32 +#define BLOCKS 16 static int fd, saved_block_size; void cleanup(int); @@ -142,8 +143,13 @@ err(EX_IOERR, "ioctl(CDRIOCNEXTWRITEABLEADDR)"); if (!quiet) { + struct stat sb; + + if (fstat(file, &sb) < 0) + err(EX_IOERR, "fstat(%s)", argv[arg]); fprintf(stderr, "next writeable LBA %d\n", addr); - fprintf(stderr, "writing from file %s\n", argv[arg]); + fprintf(stderr, "writing from file %s - %d KB\n", + argv[arg], sb.st_size / (1 << 10)); } lseek(fd, 0, SEEK_SET); size = 0; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message