Hi Cyril This is something I started writing a while ago but never got a chance to make progress among all the other activity. But I did write a few simple examples of developing LU providers. I hope to continue this work and provide more text on this subject. In the meantime you can download the examples from:
http://www.opensolaris.org/os/project/comstar/files/lu_dev_0_1.tar.gz The basic flow is: 1. Write a pseudo driver. 2. Register the lu provider in your _init() routine 3. Whenever you have a new LU to export to stmf, allocate a stmf_lu_t using stmf_alloc , initialize it with various entry points and register it with the framework. 4. The framework will online the LU (using your registered lu_ctl() entry point) and drive the SCSI task flow using the entry points in the stmf_lu_t The documentation on the various LU entry points in the stmf spec has a lot of details on them. Also it points to other stmf functions which are relevant in the contaxt of a given LU entry point. The flow diagram at the end of stmf spec also provides information on the order in which these entry points are called. You can also use sbd source code as an example. The file sbd_scsi.c is what is most relevant in this regard. Sumit Cyril Plisko wrote: > Hello ! > > I have a client that expressed interest in having a proprietery LU > provider for COMSTAR. So I started to look at the COMSTAR project > under os.org as well as the sources from NWS consolidation. I didn't > find any design documents that describe how the LU provider > driver/module supposed to operate. The stmf interface spec describes > the functions of the framework in more or less details. However it > says little about how and when they should be used. So I am looking > for something more detailed, like design document. I understand that > source code can be another source for that kind of information, but > hope there is something more formal. > > Any pointers ? > > _______________________________________________ storage-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/storage-discuss
