From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 19 13:07:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3974D16A4CE for ; Fri, 19 Dec 2003 13:07:56 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76D0143D46 for ; Fri, 19 Dec 2003 13:07:50 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 28539 invoked from network); 19 Dec 2003 21:07:49 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Dec 2003 21:07:49 -0000 Received: from hydrogen.funkthat.com (uxoxqv@localhost.funkthat.com [127.0.0.1])hBJL7mj2080082; Fri, 19 Dec 2003 13:07:49 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id hBJL7mNT080081; Fri, 19 Dec 2003 13:07:48 -0800 (PST) Date: Fri, 19 Dec 2003 13:07:48 -0800 From: John-Mark Gurney To: Joe Marcus Clarke Message-ID: <20031219210748.GD559@funkthat.com> Mail-Followup-To: Joe Marcus Clarke , hackers@freebsd.org References: <1071624821.78714.9.camel@shumai.marcuscom.com> <20031219200214.GC559@funkthat.com> <1071864527.762.17.camel@gyros> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1071864527.762.17.camel@gyros> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: hackers@freebsd.org Subject: Re: Programmatically test for a DVD drive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 21:07:56 -0000 Joe Marcus Clarke wrote this message on Fri, Dec 19, 2003 at 15:08 -0500: > > Take a look at cdrecord and see what that does... But that might > > require you to use atapi-cam instead of the "normal" atapi-cd device. > > Thanks for the pointer. Using atapi-cam is not a problem since the > application I'm porting is basically a front-end to cdrecord which > requires atapi-cam. However, I didn't know cdrecord detected the > difference on its own, or just did what it was told via command line > arguments. cdrecord on macosx (I don't have a FreeBSD box w/ atapi-cam on it handy), has the -prcap in: Cdrecord 2.01a14 (powerpc-apple-macosx6.8) Copyright (C) 1995-2003 Jörg Schilling and returns this: Drive capabilities, per MMC-2 page 2A: Does read CD-R media Does write CD-R media Does read CD-RW media Does write CD-RW media Does read DVD-ROM media Does read DVD-R media Does not write DVD-R media Does not read DVD-RAM media Does not write DVD-RAM media Does support test writing which is probably what you're interested in.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."