I am currently writing a driver for a Cygnet Infinidisk CD changer
(250 slots, 2 drives). It does the basic tasks nicely with many
things hardcoded. Now I'm replacing the dirty code, but I encountered
a little problem.
How do I find out which block device (e.g. /dev/scd[0-7]) belongs to
the drive with a particular scsi ID?
I tried opening the block devices, performing a SCSI ioctl()
to get the scsi ID and see if it matches the ID I'm searching,
but with some drives open() does not work when there is no
medium in the drive, so I cannot perform the ioctl()...
Can anyone point me in the right direction?
Cheers,
Ronald