From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 17:34:28 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 6683816A4CE for ; Tue, 16 Dec 2003 17:34:28 -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 16B0043D6E for ; Tue, 16 Dec 2003 17:33:46 -0800 (PST) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (rdu74-159-108.nc.rr.com [24.74.159.108])hBH1XhHG004292 for ; Tue, 16 Dec 2003 20:33:43 -0500 (EST) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) hBH1Vju5004079 for ; Tue, 16 Dec 2003 20:31:45 -0500 (EST) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: hackers@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ZV7NSiLbjqRa/1nFX4SG" Organization: FreeBSD, Inc. Message-Id: <1071624821.78714.9.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 16 Dec 2003 20:33: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 Subject: 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: Wed, 17 Dec 2003 01:34:28 -0000 --=-ZV7NSiLbjqRa/1nFX4SG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm trying to figure out the best way to programmatically test to see if a disc device is a DVD device. That is, how can I tell the difference between a CD-[ROM|R|RW] and a DVD-[ROM|R|RW]? Is there a set method for doing this, or should I just try to execute a DVD ioctl, and test to see if it succeeds? Thanks. Joe=20 --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-ZV7NSiLbjqRa/1nFX4SG 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/37J1b2iPiv4Uz4cRAntcAKCtfmcoV1JFazXIDTleKKlGkf/nQgCdEg7w XL6C73ECEcSUKpPnlUfeFCg= =1Lk2 -----END PGP SIGNATURE----- --=-ZV7NSiLbjqRa/1nFX4SG--