Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

task management functions for scsi/sas devices

241 views
Skip to first unread message

bicepjai

unread,
Apr 11, 2012, 7:35:01 PM4/11/12
to
Sg utils can handle all scsi commands. Is there any tool that can handle task management functions.
If theres is none, can linux scsi generic layer handle task management information units in ssp frames. ?

I am trying to test my target device with some task management functions as explained in sam-5.

bicepjai

unread,
Apr 11, 2012, 8:59:16 PM4/11/12
to
can linux ioctls handle task management functions

Thanks
Jay

Michael Baeuerle

unread,
Apr 14, 2012, 10:42:50 AM4/14/12
to
bicepjai wrote:
> bicepjai wrote:
> >
> > Sg utils can handle all scsi commands. Is there any tool that can handle task management functions.
> > If theres is none, can linux scsi generic layer handle task management information units in ssp frames. ?
> >
> > I am trying to test my target device with some task management functions as explained in sam-5.
>
> can linux ioctls handle task management functions

Here is some documentation for sg in general and for the usage with
ioctl() too:
http://www.faqs.org/docs/Linux-HOWTO/SCSI-Generic-HOWTO.html

Looks like the older sg1..sg3 interfaces can't do that you want. But
recent kernels have the sg4 interface available via /dev/bsg* devices. I
have never used it, but maybe that can help you.


Micha
--
http://micha.freeshell.org/
0 new messages