Re: program inquiry is using a deprecated scsi_ioctl , please convert it to SG_IO

2007-02-22 Thread Douglas Gilbert
James Bottomley wrote: > On Thu, 2007-02-22 at 11:59 +0530, MASTHAN DUDEKULA wrote: >> Hi JAMES, >> >> >> The following code is SG_IO equivalent of scsi ioctls >> SCSI_TEST_UNIT_READY >> >>unsigned char sense_b[32]; >> unsigned char turCmbBlk[] = {0x00, 0, 0, 0, 0, 0}; >> struct s

Re: program inquiry is using a deprecated scsi_ioctl , please convert it to SG_IO

2007-02-22 Thread James Bottomley
On Thu, 2007-02-22 at 11:59 +0530, MASTHAN DUDEKULA wrote: > Hi JAMES, > > > The following code is SG_IO equivalent of scsi ioctls > SCSI_TEST_UNIT_READY > >unsigned char sense_b[32]; > unsigned char turCmbBlk[] = {0x00, 0, 0, 0, 0, 0}; > struct sg_io_hdr io_hdr; > > memset(

Re: program inquiry is using a deprecated scsi_ioctl , please convert it to SG_IO

2007-02-21 Thread James Bottomley
If you want help, please don't drop linux-scsi. On Wed, 2007-02-21 at 12:03 +0530, MASTHAN DUDEKULA wrote: > Thanks for your reply. > > I have one question to you. > Can you please answetr this one ? > What is SG_IO equivalent of SCSI_IOCTL_SCSI_COMMAND on sd devices ? > > In otherwords How ca

Re: program inquiry is using a deprecated scsi_ioctl , please convert it to SG_IO

2007-02-08 Thread James Bottomley
On Thu, 2007-02-08 at 02:14 -0800, Masthan wrote: > I am not getting why i am getting the following DIAG message > > Program inquiry is using deprecated scsi ioctl, please convert it to SG_IO. > > The following snippet of linux source code clearly saying that, the above > message is a kind of cos

program inquiry is using a deprecated scsi_ioctl , please convert it to SG_IO

2007-02-08 Thread Masthan
Hi All, I am not getting why i am getting the following DIAG message Program inquiry is using deprecated scsi ioctl, please convert it to SG_IO. The following snippet of linux source code clearly saying that, the above message is a kind of cosmetic warning message. Do you know how to use SG_IO