FUJITA Tomonori wrote on 2006-08-26: > From: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> ... >> Could someone of the SCSI target folks give a rough outline of a SCSI >> target's building blocks when using this framework? > > Our OLS's paper and slides have good pictures. > > http://stgt.berlios.de/ > > I guess that SBP target stuff works well with the target > framework. All you need to do is to take care of SBP protocol. The > framework does the rest, that is, SCSI protocol processing, I/O, > logical unit management, configuration, etc. > > For example, your driver receives a SCSI command from an initiator, > tell the framework to perform it. Then the framework sends back the > result and buffer containing data you send to the initiator if > necessary. This looks very comfortable to write a transport driver against. > I don't know where your driver is implemented, in kernel space or user > space. Hani Mustafa's unpublished target is in kernel. Manish Singh's is in userspace (as a libraw1394 application via the raw1394 character device; AFAIU multiple initiators capable, currently single-LU and just RBC). I don't know the pros and cons of either approach in detail, however it's good to have the choice. (Besides and off topic, an SBP-2 target implementation in BIOS would be useful, like in Apple's firmware of their desktops and portables.) > The framework was designed for the former, however, it works > with both models now. You can find an example of the latter (though > it's just experiment): > > svn co http://svn.berlios.de/svnroot/repos/stgt/branches/user-iscsi > > > BTW, we've prepared a new git tree: > > http://www.kernel.org/git/?p=linux/kernel/git/mnc/linux-2.6-target.git;a=summary Thanks for the explanation and links. -- Stefan Richter -=====-=-==- =--= --=-- http://arcgraph.de/sr/ -- VGER BF report: U 0.500005 - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html