From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 19 08:11:26 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 3892116A4CE for ; Fri, 19 Dec 2003 08:11:26 -0800 (PST) Received: from mail.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 3EE5F43D49 for ; Fri, 19 Dec 2003 08:11:23 -0800 (PST) (envelope-from reichert@numachi.com) Received: (qmail 88749 invoked from network); 19 Dec 2003 16:11:22 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 19 Dec 2003 16:11:22 -0000 Received: (qmail 33444 invoked from network); 19 Dec 2003 16:11:22 -0000 Received: from localhost (HELO natto.numachi.com) (127.0.0.1) by localhost with SMTP; 19 Dec 2003 16:11:22 -0000 Received: (from reichert@localhost) by natto.numachi.com (8.12.9p2/8.12.9/Submit) id hBJGBM1u033442; Fri, 19 Dec 2003 11:11:22 -0500 (EST) (envelope-from reichert@numachi.com) X-Authentication-Warning: natto.numachi.com: reichert set sender to reichert@numachi.com using -f Date: Fri, 19 Dec 2003 11:11:22 -0500 From: Brian Reichert To: Joe Marcus Clarke Message-ID: <20031219161122.GC31532@numachi.com> References: <1071624821.78714.9.camel@shumai.marcuscom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1071624821.78714.9.camel@shumai.marcuscom.com> User-Agent: Mutt/1.5.5.1i 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 16:11:26 -0000 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 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large