[8878] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Identifying IDE or SCSI cdrom

daemon@ATHENA.MIT.EDU (cowo)
Tue May 23 18:04:30 2000

Date:	Tue, 23 May 2000 16:55:56 +0200 (CEST)
From: cowo <cowo@libero.it>
To: Linux SCSI list <linux-scsi@vger.rutgers.edu>
Message-ID: <Pine.LNX.4.21.0005231647580.1144-100000@braveheart.cowo.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

I'm rather a newbie in the SCSI programming world, be generous! :-)

I'm developing a cd-da player and I need do identify an IDE cdrom from a
SCSI or emulated one, since for the SCSI I have written generic mmc
commands, and for the IDE ... I don't know (other people are doing this
:-).
As I've said SCSI devices are controlled via generic commands on their sg
interface. This is very powerful but has one "problem": it needs rw accedd
to the devfile. It's not good to grant users write access to cdrom or
writer devfile, isn't it? I've read in sg notes there is another way by
ioctl()ing the kernel (scsi_ioctl_send_command). But if I convert the scsi
handling function into ioctl what read/write permissions will be required
to the devfiles? Normal users will be able to use this?
And finally: where can I take some examples of scsi_ioctl... use?
Suggestions are VERY welcome!

--
  Giuseppe "Cowo" Corbelli >> Riding on Linux 2.2.14
------------------------------------------------------
-<= Won't You Take A Chance On This Night Child And Follow Me =>-
		Savatage - Follow Me


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post