From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 19 13:11:47 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 7C3FD16A4CF for ; Fri, 19 Dec 2003 13:11:47 -0800 (PST) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C15443D31 for ; Fri, 19 Dec 2003 13:11:43 -0800 (PST) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (rdu74-159-108.nc.rr.com [24.74.159.108])hBJLBdHG014468; Fri, 19 Dec 2003 16:11:39 -0500 (EST) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) hBJL9Lu5034884; Fri, 19 Dec 2003 16:09:21 -0500 (EST) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: John-Mark Gurney In-Reply-To: <20031219210748.GD559@funkthat.com> References: <1071624821.78714.9.camel@shumai.marcuscom.com> <20031219200214.GC559@funkthat.com> <1071864527.762.17.camel@gyros> <20031219210748.GD559@funkthat.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ivC8pRAioLiNLZdwfBM9" Organization: FreeBSD, Inc. Message-Id: <1071868301.762.27.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 19 Dec 2003 16:11:41 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on creme-brulee.marcuscom.com X-Virus-Scanned: Symantec AntiVirus Scan Engine 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 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:11:47 -0000 --=-ivC8pRAioLiNLZdwfBM9 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, 2003-12-19 at 16:07, John-Mark Gurney wrote: > 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. > >=20 > > 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. >=20 > 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=F6rg= Schilling >=20 > and returns this: > Drive capabilities, per MMC-2 page 2A: >=20 > 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 >=20 > which is probably what you're interested in.. Exactly. I was looking through the code, and it does indeed get all of the info I need. Thanks again. Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: marcus@FreeBSD.org gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-ivC8pRAioLiNLZdwfBM9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/42mNb2iPiv4Uz4cRAkuqAJ9rS0hk9+IxYr4GtagQxNqr4NmS7wCeK6Zj Cwe6bYduSK4E6WXf/f+znFE= =uD7Q -----END PGP SIGNATURE----- --=-ivC8pRAioLiNLZdwfBM9--