Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2003 16:11:41 -0500
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        John-Mark Gurney <gurney_j@efn.org>
Cc:        hackers@FreeBSD.org
Subject:   Re: Programmatically test for a DVD drive
Message-ID:  <1071868301.762.27.camel@gyros>
In-Reply-To: <20031219210748.GD559@funkthat.com>
References:  <1071624821.78714.9.camel@shumai.marcuscom.com> <20031219200214.GC559@funkthat.com> <1071864527.762.17.camel@gyros> <20031219210748.GD559@funkthat.com>

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

--=-ivC8pRAioLiNLZdwfBM9
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

On Fri, 2003-12-19 at 16:07, John-Mark Gurney wrote:
> Joe Marcus Clarke wrote this message on Fri, Dec 19, 2003 at 15:08 -0500:
> > > Take a look at cdrecord and see what that does...  But that might
> > > require you to use atapi-cam instead of the "normal" atapi-cd device.
> >=20
> > Thanks for the pointer.  Using atapi-cam is not a problem since the
> > application I'm porting is basically a front-end to cdrecord which
> > requires atapi-cam.  However, I didn't know cdrecord detected the
> > difference on its own, or just did what it was told via command line
> > arguments.
>=20
> cdrecord on macosx (I don't have a FreeBSD box w/ atapi-cam on it handy),
> has the -prcap in:
> Cdrecord 2.01a14 (powerpc-apple-macosx6.8) Copyright (C) 1995-2003 J=F6rg=
 Schilling
>=20
> and returns this:
> Drive capabilities, per MMC-2 page 2A:
>=20
>   Does read CD-R media
>   Does write CD-R media
>   Does read CD-RW media
>   Does write CD-RW media
>   Does read DVD-ROM media
>   Does read DVD-R media
>   Does not write DVD-R media
>   Does not read DVD-RAM media
>   Does not write DVD-RAM media
>   Does support test writing
>=20
> which is probably what you're interested in..

Exactly.  I was looking through the code, and it does indeed get all of
the info I need.  Thanks again.

Joe

--=20
Joe Marcus Clarke
FreeBSD GNOME Team	::	marcus@FreeBSD.org
gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome


--=-ivC8pRAioLiNLZdwfBM9
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/42mNb2iPiv4Uz4cRAkuqAJ9rS0hk9+IxYr4GtagQxNqr4NmS7wCeK6Zj
Cwe6bYduSK4E6WXf/f+znFE=
=uD7Q
-----END PGP SIGNATURE-----

--=-ivC8pRAioLiNLZdwfBM9--



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