Date: Fri, 19 Dec 2003 11:11:22 -0500 From: Brian Reichert <reichert@numachi.com> To: Joe Marcus Clarke <marcus@FreeBSD.org> Cc: hackers@FreeBSD.org Subject: Re: Programmatically test for a DVD drive Message-ID: <20031219161122.GC31532@numachi.com> In-Reply-To: <1071624821.78714.9.camel@shumai.marcuscom.com> References: <1071624821.78714.9.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org > FreeNode / #freebsd-gnome > http://www.FreeBSD.org/gnome -- Brian 'you Bastard' Reichert <reichert@numachi.com> 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031219161122.GC31532>