From owner-cvs-all Fri Aug 11 2:21:40 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3618237C025; Fri, 11 Aug 2000 02:21:37 -0700 (PDT) (envelope-from sos@FreeBSD.org) Received: (from sos@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA40485; Fri, 11 Aug 2000 02:21:37 -0700 (PDT) (envelope-from sos@FreeBSD.org) Message-Id: <200008110921.CAA40485@freefall.freebsd.org> From: Søren Schmidt Date: Fri, 11 Aug 2000 02:21:36 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ata atapi-cd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG sos 2000/08/11 02:21:36 PDT Modified files: sys/dev/ata atapi-cd.c Log: Add support for accessing individual tracks on a CD. This is done by misusing the device minor a bit to encode the track no there. So to read track #4 just use /dev/acdNt4 where N is the device #. The driver no automatically sets the blocksize (sectorsize) to what the track is set to in the TOC. This has the nice effect that you can now rip audioi tracks by simply doing: dd if=/dev/acdNt2 of=audiotrack2.raw bs=2352 it cant be much simpler than that :) NOTE: the original acdNa & acdNc device still work as usual, except the blocksize is set according to track0. Revision Changes Path 1.61 +32 -6 src/sys/dev/ata/atapi-cd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message