linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* need help with sg ioctls
@ 2008-02-28 16:43 Bernd Schubert
  2008-02-28 20:15 ` Mike Christie
  2008-03-04 11:08 ` Bernd Schubert
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Schubert @ 2008-02-28 16:43 UTC (permalink / raw)
  To: linux-scsi

Hello,

for some reasons the kernel.org qla4xxx driver doesn't work for us. Version 
5.01.00.08 seems to work a bit better, but all default sg-ioctl's are not 
defined.

Adding these manually as in scsi/sg.c works, but IMHO is rather stupid. Is 
there a sane way to call sg_ioctl()?
I mean it's static and also not exported and the file_operations ioctl method 
is already taken by the qla4xxx driver.

Do I miss something?


Thanks in advance,
Bernd

-- 
Bernd Schubert
Q-Leap Networks GmbH

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help with sg ioctls
  2008-02-28 16:43 need help with sg ioctls Bernd Schubert
@ 2008-02-28 20:15 ` Mike Christie
  2008-02-28 20:58   ` Bernd Schubert
  2008-03-04 11:08 ` Bernd Schubert
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Christie @ 2008-02-28 20:15 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: linux-scsi

Bernd Schubert wrote:
> Hello,
> 
> for some reasons the kernel.org qla4xxx driver doesn't work for us. Version 
> 5.01.00.08 seems to work a bit better, but all default sg-ioctl's are not 
> defined.
> 
> Adding these manually as in scsi/sg.c works, but IMHO is rather stupid. Is 
> there a sane way to call sg_ioctl()?
> I mean it's static and also not exported and the file_operations ioctl method 
> is already taken by the qla4xxx driver.
> 

Do you mean that with the driver from qlogic.com (or one of the distros) 
you can do sg io to the qla4xxx driver, but with the kernel.org driver 
you have to go through the sg (scsi/sg.c) driver?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help with sg ioctls
  2008-02-28 20:15 ` Mike Christie
@ 2008-02-28 20:58   ` Bernd Schubert
  0 siblings, 0 replies; 4+ messages in thread
From: Bernd Schubert @ 2008-02-28 20:58 UTC (permalink / raw)
  To: Mike Christie; +Cc: linux-scsi

Hello Mike,

On Thu, Feb 28, 2008 at 02:15:39PM -0600, Mike Christie wrote:
> Bernd Schubert wrote:
>> Hello,
>> for some reasons the kernel.org qla4xxx driver doesn't work for us. 
>> Version 5.01.00.08 seems to work a bit better, but all default sg-ioctl's 
>> are not defined.
>> Adding these manually as in scsi/sg.c works, but IMHO is rather stupid. Is 
>> there a sane way to call sg_ioctl()?
>> I mean it's static and also not exported and the file_operations ioctl 
>> method is already taken by the qla4xxx driver.
>
> Do you mean that with the driver from qlogic.com (or one of the distros) 
> you can do sg io to the qla4xxx driver, but with the kernel.org driver you 
> have to go through the sg (scsi/sg.c) driver?

I'm not sure about the in-kernel driver, as I was told by my boss it doesn't
work at all with the overland tape library.
And yes, with the driver from qlogic I *have* to do sg io through this driver.
But it only knows its own ioctls, but not the default sg-ioctls.
I'm now adding all these ioctls to the driver, but somehow I think it is 
ridiculous to this when these are already defined in scsi/sg.c.

Thanks,
Bernd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help with sg ioctls
  2008-02-28 16:43 need help with sg ioctls Bernd Schubert
  2008-02-28 20:15 ` Mike Christie
@ 2008-03-04 11:08 ` Bernd Schubert
  1 sibling, 0 replies; 4+ messages in thread
From: Bernd Schubert @ 2008-03-04 11:08 UTC (permalink / raw)
  To: linux-scsi, Mike Christie

On Thursday 28 February 2008 17:43:51 Bernd Schubert wrote:
> Hello,
>
> for some reasons the kernel.org qla4xxx driver doesn't work for us. Version
> 5.01.00.08 seems to work a bit better, but all default sg-ioctl's are not
> defined.
>
> Adding these manually as in scsi/sg.c works, but IMHO is rather stupid. Is
> there a sane way to call sg_ioctl()?
> I mean it's static and also not exported and the file_operations ioctl
> method is already taken by the qla4xxx driver.
>
> Do I miss something?

Enventually we found the reason for all the trouble. It was a bug in one of 
the debian udev scripts (scsi_devfs.sh), which made it to override /dev 
entries with wrong device major/minors (debian bug Bug#468939).

Sorry for the noise.




-- 
Bernd Schubert
Q-Leap Networks GmbH

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-04 11:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28 16:43 need help with sg ioctls Bernd Schubert
2008-02-28 20:15 ` Mike Christie
2008-02-28 20:58   ` Bernd Schubert
2008-03-04 11:08 ` Bernd Schubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).