Re: ISCSI target simulator

136 views
Skip to first unread message

ronnie sahlberg

unread,
May 16, 2013, 5:19:02 PM5/16/13
to libi...@googlegroups.com
Libiscsi is mainly/only initiator side today.

There is some limited cdb-unmarshalling code in there that could be
useful in a target but it is very incomplete.
It would take a lot of work to add all the missing pieces to make
libiscsi a target.


Why not use TGT (http://stgt.sourceforge.net/) it runs in userspace
and is fairly straightforward to work on.


I have a really tiny iscsi target i hacked up a number of years ago.
Its about a thousand lines of code all in all, including SBC
emulation.
At some stage I will clean it up and perhaps add it to the libiscsi
package as "fun code".


On Wed, May 15, 2013 at 2:54 PM, Florian <cdi...@gmail.com> wrote:
> Hi everybody
> I was thinking about how to use libiscsi to emulate a target: accepting
> connections on port 3260 and read iscsi PDUs.
>
> --
> You received this message because you are subscribed to the Google Groups
> "libiscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to libiscsi+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Florian

unread,
May 16, 2013, 11:59:54 PM5/16/13
to libi...@googlegroups.com
I agree. But some functions for reading and parsing  iscsi PDUs form initiator socket will be very useful.
It can be imagined an iscsi proxy, ,reading PDUs from initiator, eventualy modify them and pass them to the target. This is usefull for iSCSI Conformance Testing (check  wikipedia): simulating iscsi errors, play with the headers and so on... Devices sitting between initiators and target arrays for testing purposes, this is in my opinion the real test scenario.

amit....@gmail.com

unread,
Nov 14, 2013, 5:03:04 PM11/14/13
to libi...@googlegroups.com


On Thursday, May 16, 2013 2:19:02 PM UTC-7, ronnie sahlberg wrote:
I have a really tiny iscsi target i hacked up a number of years ago.
Its about a thousand lines of code all in all, including SBC
emulation.  
At some stage I will clean it up and perhaps add it to the libiscsi
package as "fun code".



Saw this post you made a while back and was wondering if you can post that tiny iscsi target? I would like to use it with Cygwin to provide iSCSI target on Windows.
Reply all
Reply to author
Forward
0 new messages