Programmatically test for a DVD drive
Brian Reichert
reichert at numachi.com
Fri Dec 19 08:11:26 PST 2003
On Tue, Dec 16, 2003 at 08:33:41PM -0500, Joe Marcus Clarke wrote:
> 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.
When I've poked, the tracks in a TOC of a DVD is _huge_ compared
to a CD-ROM.
But, I, too, am looking for a better way...
> Joe
> --
> Joe Marcus Clarke
> FreeBSD GNOME Team :: gnome at FreeBSD.org
> FreeNode / #freebsd-gnome
> http://www.FreeBSD.org/gnome
--
Brian 'you Bastard' Reichert <reichert at numachi.com>
37 Crystal Ave. #303 Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
More information about the freebsd-hackers
mailing list