Subject: Re: An easy way to check for new disks?
To: None <current-users@netbsd.org>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: current-users
Date: 07/31/2002 13:36:51
--+g7M9IMkV8truYOl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 15, 2002 at 07:15:36PM -0700, Stephen Ma wrote:
> If polling is OK for you, then "scsictl <blah> tur" seems to work.=20

Hrm. Do both my CD-ROMs just suck, or is it rather uncommon for
CD-ROMs to support this ioctl?

Witness:

grappa:binary/kernel# dmesg | grep ^'cd. at'
cd0 at scsibus0 target 1 lun 0: <PLEXTOR, CD-R   PX-W1210S, 1.01> SCSI2 5/c=
drom removable
cd1 at scsibus0 target 3 lun 0: <MATSHITA, CD-ROM CR-8012, 1.0g> SCSI2 5/cd=
rom removable
grappa:binary/kernel# dmesg | grep ahc
ahc0 at pci0 dev 17 function 0
ahc0: interrupting at irq 15
ahc0: aic7880 Single Channel A, SCSI Id=3D7, 16/255 SCBs
scsibus0 at ahc0: 8 targets, 8 luns per target
grappa:binary/kernel# scsictl /dev/cd0d tur
scsictl: /dev/cd0d: Operation not supported by device
grappa:binary/kernel# scsictl /dev/cd1d tur
scsictl: /dev/cd1d: Operation not supported by device

Duh?

--=20
gabriel rosenkoetter
gr@eclipsed.net

--+g7M9IMkV8truYOl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE9SCAy9ehacAz5CRoRAqLCAJ4vjqLyDTerh3PcjRmSnhbSXHtaUwCgs8Ok
GzRLDKEl5vCs1PgVCyc4RdQ=
=q8Jz
-----END PGP SIGNATURE-----

--+g7M9IMkV8truYOl--