Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2003 20:33:41 -0500
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        hackers@FreeBSD.org
Subject:   Programmatically test for a DVD drive
Message-ID:  <1071624821.78714.9.camel@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

--=-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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1071624821.78714.9.camel>