Re: [PATCH] get the kernel to warn about deprecated SCSI ioctls

Pat LaVarre
2004-08-19T17:07:53Z

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

> 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.

> 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.