From owner-cvs-all Mon Jan 24 23:27: 0 2000 Delivered-To: cvs-all@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 19BF715367; Mon, 24 Jan 2000 23:26:50 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id IAA63338; Tue, 25 Jan 2000 08:26:38 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200001250726.IAA63338@freebsd.dk> Subject: Re: cvs commit: src/sys/dev/ata ata-all.c ata-all.h ata-disk.c ata-dma.c atapi-all.c atapi-cd.c atapi-cd.h atapi-fd.c In-Reply-To: from Brian Fundakowski Feldman at "Jan 25, 2000 01:02:54 am" To: green@FreeBSD.org (Brian Fundakowski Feldman) Date: Tue, 25 Jan 2000 08:26:38 +0100 (CET) Cc: sos@FreeBSD.org (=?ISO-8859-1?Q?S=F8ren?= Schmidt), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk It seems Brian Fundakowski Feldman wrote: > > I've got a question. Okay, I want to make backups of my audio CD > collection; is the correct way to get the TOC, lseek() to the LBA > on the acd device (which?), and read for the length the TOC reports? > Also, does this obsolete jitter correction, or just make it different, > or what? I'm asking because I'd like to provide a "backupcd" script > for the examples, as well as using it myself. You got that right! use the acd0c device (not that it really matters they are both equal), seek to the LBA wanted and just dd it in. Remember though that you have to set the blocksize with an ioctl call, or the kernel will get confused. This can be used to copy any type of CD actually :) When I get more time, hopefully after 4.0, I plan to implement DiskAtOnce mode in burncd, that way you just read the _entire_ CD into a file get the TOC and burn it in one go. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message