History log of /openbsd-current/usr.sbin/iscsid/initiator.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.15 16-Jan-2015 deraadt

move to <limits.h> where possible, annotate <sys/param.h> otherwise


# 1.14 23-Nov-2014 claudio

Change the error handling a bit to ensure we do not double free the task
by calling conn_task_cleanup() twice (once direct and once via conn_fail()).
The error handling needs some more work but at least this fixes the crash
found by jasper@


Revision tags: OPENBSD_5_6_BASE
# 1.13 10-May-2014 claudio

Extend the connection and session FSMs so that connection failure is
handled more gracefully. Losing the TCP connection no longer results
in an unrecoverable stop requiring a restart of iscsid.


# 1.12 20-Apr-2014 claudio

Fix conn_gen_kvp and its caller to fill the kvp array properly (including
the NULL terminator at the end). Now iscsid does proper LoginOperational
negotiation (which will bump the MaxRecvDataSegmentLength to 64k)


# 1.11 19-Apr-2014 claudio

COnveret the bcopy() to memcpy()


# 1.10 19-Apr-2014 claudio

Replace a magic number.


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.9 04-May-2011 claudio

Massive diff to handle logins more correctly. iscsid will now do
better operational parameter negotiation but more is needed.
Tested by todd@ and myself.


# 1.8 02-May-2011 claudio

Rework the logout code and use this to do a proper logout when
exiting. This works well for idle sessions but still has some
issues on busy session. It seems more task scheduler changes are
needed to make this work. This also includes some mem-leak fixes
in error pathes found by Igor Zinovik.
go for it dlg@


# 1.7 27-Apr-2011 claudio

Rename task_cleanup() to conn_task_cleanup() seems a better place for
this function since it does connections scheduling.


# 1.6 27-Apr-2011 claudio

Start implementing the FSM. Introduce a session FSM that is run via a
callback and implement some of the connection FSM actions. Implement
logouts so that discovery sessions do a nice login -> query -> logout.
Fix the task scheduling especially for immediate and connection specific
tasks. The session will now only schedule tasks to a session that is
in LOGGED_IN state.
looks good dlg@


# 1.5 05-Apr-2011 claudio

Move session related code into session.c.


Revision tags: OPENBSD_4_9_BASE
# 1.4 04-Jan-2011 claudio

Implememnt NOP-IN -> NOP-OUT handling. If the NOP-In was issued by the
target (itt = 0xffffffff) send back an immediate NOP-Out reusing the
NOP-In PDU. This makes my iscsi target happy.
Also plug a mem leak on error path which was found by Igor Zinovik.


# 1.3 25-Sep-2010 sobrado

spacing, no binary changes.


# 1.2 25-Sep-2010 sobrado

fix typos in documentation and log_debug() function.

ok claudio@


# 1.1 24-Sep-2010 claudio

iSCSI Initiatior daemon using vscsi(4).
Currently implements the absolute minimum of the protocol to make
it work against targets. Many things still in flux but we're annoyed
to work outside of the tree. Commited from a source tree on an iSCSI
disk served via iscsid but it is not yet production ready.
OK dlg@, matthew@, deraadt@