Skip to contentSkip to conversation

get the kernel to warn about deprecated SCSI ioctls

PATCH Pat LaVarre 1 participant 1 message Aug 19, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

Yes, please, which SCSI pass thru ioctl should I use in Linux.

Quoted 2 lines

SCSI_IOCTL_SEND_COMMAND ...
please convert ... to SG_IO

Ouch, I am instead choosing the mostly undocumented ioctl CDROM_SEND_PACKET, opened O_NONBLOCK, because I can't see how else to reach 2.4 Linux /dev/hd$v thru cdrom ide-cd.

Quoted 1 line

SCSI_IOCTL_SEND_COMMAND ... deprecated ...

Me the newbie, I missed and I still do not see how I should know this SCSI pass thru ioctl is deprecated, unless we add the printk you suggest.

Pat LaVarre
http://marc.theaimsgroup.com/?l=linux-scsi&m=109278095826988
http://linux-pel.blog-city.com/read/756175.htm
http://linux-pel.blog-city.com/read/771746.htm

P.S. I'm resorting to SCSI pass thru for such purposes as toggling the invisible MMC PWP write protect switch found in DVD-RAM discs, Iomega REV discs, etc.