Date: Sun, 16 Jan 2000 15:33:21 -0500 (EST) From: Brian Fundakowski Feldman <green@FreeBSD.org> To: Bryan Liesner <bleez@netaxs.com> Cc: sos@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: ATA CD-R problems, still... Message-ID: <Pine.BSF.4.10.10001161531340.24936-100000@green.dyndns.org> In-Reply-To: <Pine.BSF.4.21.0001082235410.192-100000@gravy.kishka.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/ioctl.h>
#include <sys/cdio.h>
#include <sys/cdrio.h>
+#include <sys/stat.h>
-#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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10001161531340.24936-100000>
