> From: [email protected] [mailto:fcoe-devel-
> [email protected]] On Behalf Of Saeed Mirzamohamadi
> Sent: Monday, June 24, 2013 6:53 AM
> To: [email protected]
> Subject: [Open-FCoE] how to send commands
> 
> Hello everyone
> How can i send read and write commands?
> Read(16) or write(16) command structures are in fc_scsi.h file. How can i
> send this commands to device? and is there any sample code?
> 

Hi there.

So with typical FCoE usage, the READ/WRITE commands are sent from the SCSI 
layer of the Linux kernel. FCoE is just a transport for them. You would not 
need to explicitly send READ/WRITE commands.

I think fc_scsi.h is used in fcoeadm_display.c because fcoeadm uses the HBA API 
(libHBAAPI.so/libhbalinux.so) to send a few commands and fcoeadm needs to be 
able to understand the returned data. fcoeadm sends commands to learn 
information about LUNs for the '-l' and '-t' options, it sends INQUIRY and READ 
CAPACITY and possibly one or more other informational commands. It does not 
currently have a facility to do READ/WRITE, AFAIK.

There might be something with the SCSI utilities, sg3_utils, but I am not sure.

//Rob
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to