Re: Help - SCSI passthrough ioctl calls vs. sd/sg devices

From: Josef Möllers (josef.moellers_at_fujitsu-siemens.com)
Date: 04/22/04


Date: Thu, 22 Apr 2004 18:10:51 +0200

L wrote:
> This is veeery helpfule, Josef.
>
> Sounds to me like all SCSI passthrough ioctl calls (with commands like
> INQUIRY, READ/WRITE, RESERVE/RELEASE, MODE SELECT/SENSE, PERSISTENT
> RESERVATION) should be issued to sg devices, and none of them can be sent to
> sd devices, correct?

Cor...ect!

Although there seems to be a possibility to send an ioctl(2) to the sd
driver with a cmd of SCSI_IOCTL_SEND_COMMAND where you can pass
arbitrary commands through the sd driver, the source code says "This
interface is depreciated", so let's not use it.

-- 
Josef Möllers (Pinguinpfleger bei FSC)
	If failure had no penalty success would not be a prize
						-- T.  Pratchett


Relevant Pages

  • Re: Help - SCSI passthrough ioctl calls vs. sd/sg devices
    ... > Sounds to me like all SCSI passthrough ioctl calls (with commands like ... > RESERVATION) should be issued to sg devices, and none of them can be sent to ... arbitrary commands through the sd driver, ... Josef Möllers ...
    (comp.os.linux.development.apps)
  • Re: Help - SCSI passthrough ioctl calls vs. sd/sg devices
    ... > Sounds to me like all SCSI passthrough ioctl calls (with commands like ... > RESERVATION) should be issued to sg devices, and none of them can be sent to ... arbitrary commands through the sd driver, ... Josef Möllers ...
    (comp.os.linux.development.system)
  • Re: Help - SCSI passthrough ioctl calls vs. sd/sg devices
    ... > Sounds to me like all SCSI passthrough ioctl calls (with commands like ... > RESERVATION) should be issued to sg devices, and none of them can be sent to ... arbitrary commands through the sd driver, ... Josef Möllers ...
    (comp.os.linux.misc)
  • [PATCH 4/4] scsi: megaraid_sas - update version and Changelog
    ... +It looks like megaraid_sas at least needs this to throttle its commands ... When MegaSAS driver receives reset call from OS, ... +routine for max 3 minutes for all pending command completion. ... the driver just waits for cmd completion by FW. ...
    (Linux-Kernel)
  • [PATCH 4/4] scsi: megaraid_sas - update version and Changelog
    ... +It looks like megaraid_sas at least needs this to throttle its commands ... When MegaSAS driver receives reset call from OS, ... +routine for max 3 minutes for all pending command completion. ... the driver just waits for cmd completion by FW. ...
    (Linux-Kernel)