summaryrefslogtreecommitdiff
path: root/usr.sbin/iscsid/connection.c
AgeCommit message (Collapse)Author
2014-11-23TargetPortalGroupTag is a binary 16-bit value so 0 is allowed.Claudio Jeker
Still not perfect since binary values can also be base64 encoded but one step closer.
2014-05-10Extend the connection and session FSMs so that connection failure isClaudio Jeker
handled more gracefully. Losing the TCP connection no longer results in an unrecoverable stop requiring a restart of iscsid.
2014-04-21Bind to localAddr if specified and add some XXX comments about stuffClaudio Jeker
that is not prefect yet.
2014-04-21Handle EAGAIN, ENOBUFS and EINTR a bit better. Ignore them one layer aboveClaudio Jeker
and do not fail and tear down the world when they happen.
2014-04-20After doing all of the loging dance to get the target's params it makesClaudio Jeker
sense to merge them into the active set. At least that way we run with the right params and finally do reads and writes that are > 8k.
2014-04-20Use only one style for "return foo;"Claudio Jeker
2014-04-20Fix conn_gen_kvp and its caller to fill the kvp array properly (includingClaudio Jeker
the NULL terminator at the end). Now iscsid does proper LoginOperational negotiation (which will bump the MaxRecvDataSegmentLength to 64k)
2011-05-04Massive diff to handle logins more correctly. iscsid will now doClaudio Jeker
better operational parameter negotiation but more is needed. Tested by todd@ and myself.
2011-05-02Rework the logout code and use this to do a proper logout whenClaudio Jeker
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@
2011-04-28Try to schedule a new task for the connection in conn_task_cleanup()Claudio Jeker
this removes the session_schedule() in the task_pdu_cb().
2011-04-27Rename task_cleanup() to conn_task_cleanup() seems a better place forClaudio Jeker
this function since it does connections scheduling.
2011-04-27Start implementing the FSM. Introduce a session FSM that is run via aClaudio Jeker
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@
2011-04-05Log the SessionName so that it is possible to understand which sessionClaudio Jeker
caused the problem.
2011-01-10Remove 2 empty lines.Claudio Jeker
2011-01-06Pass the magic LUN -1 to VSCSI_REQPROBE so that all LU are probedClaudio Jeker
by the midlayer. With help from dlg@
2011-01-04Cleanup tasks with a NULL callback after queuing the PDU to be sent out.Claudio Jeker
This allows immediate responses (e.g. NOP-out) to be issued with a task instead of very special code. Also set expstatsn on all PDU that carry it.
2010-09-25spacing, no binary changes.Igor Sobrado
2010-09-24another useless and noisy debug messageClaudio Jeker
2010-09-24Set TCP_NODELAY since we want the request to be sent ASAP.Claudio Jeker
OK dlg@
2010-09-24iSCSI Initiatior daemon using vscsi(4).Claudio Jeker
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@