On 02/18/2010 11:04 AM, Mike Christie wrote:
> On 02/18/2010 09:02 AM, ram krishnan wrote:
>> On Tue, Feb 16, 2010 at 8:44 AM, Mike Christie<[email protected]>  wrote:
>>
>>>   On 02/14/2010 01:04 AM, ramki wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying some experiments with the open iscsi sg interface.
>>>>
>>>> Does the open-iscsi sg interface support all the SCSI commands -
>>>> including R2T responses for writes ?
>>>>
>>>>
>>> What do you mean by the open-iscsi sg interface? Do you mean the sg device
>>> that is accessed through /dev/sg or doing SGIO to the block device? If so
>>> then I think it supports all scsi commands. It at least supports all scsi
>>> commands that you can do with that interface. I do not think you can do
>>> commands that require bidi. For that you have to use bsg.
>>>
>>
>> Hi Mike,
>>
>> Many thanks for the information. Is there a separate device /dev/bsg like
>> /dev/sg ?
>>
> 
> Yes. Load the bsg driver
> 
> modprobe bsg
> 
> and you should get that device (see kernel-source/block/bsg.c for the 
> bsg code if you want).
> 

Here is an example usage of bsg driver:
http://git.open-osd.org/gitweb.cgi?p=open-osd.git;a=blob;f=lib/bsgdev.c;h=f55a87879784f05950e7a2d88798605183cc660a;hb=HEAD
It emulates the kernels blk_request API in user-mode applications, funny stuff.
But you can see the basic bsg usage, also with BIDI

Boaz

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to