Peter Lieven
cb6f2ce252
iSCSI Redirect support
...
This patch adds support for persistant portals like they are common
to storage arrays with different interfaces or physical members.
2012-10-18 10:48:52 +02:00
Peter Lieven
4cb845477d
Add debugging framework
...
This patch adds a user configurable debug level. For testing
it includes connection info and reporting errors.
2012-10-18 10:36:26 +02:00
Ronnie Sahlberg
439f68e555
CONNECTION: Track the connection state and callback via the context structure
...
Dont free the connection state when login is finished, instead track it via the
iscsi context structure and free it once the context is destroyed
2012-08-02 08:51:25 +10:00
Ronnie Sahlberg
77d8e41be7
TESTS: Add a mechanism to temporarily disable the session reconnect
...
Some tests may cause a target to drop the session.
For these tests we DO want the test tool to detect that the command
failed and later reconnect the session again when we proceed to the next subtest
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-08-01 16:32:40 +10:00
Ronnie Sahlberg
6f4afb6edb
MEDIUM_NOT_PRESENT/TRAY-CLOSED/TRAY_OPEN is not an error that blocks a successful connect
2012-07-12 18:55:35 +10:00
Ronnie Sahlberg
801bfb342d
Login: dont fail the login just because there is no media in a device
...
in that case we will never reach test unit ready being successful since it will fail with NOT_READY/MEDIUM_NOT_PRESENT.
Treat this sense code as a successful login as far as the login process is concerned
2012-07-11 15:33:32 +10:00
Ronnie Sahlberg
dafa186868
win32: connect.c needs the compatibility functions
2012-05-15 21:54:10 +10:00
Ronnie Sahlberg
05d2f81a84
win32: unistd.h is not available under win32
2012-05-15 21:45:30 +10:00
Ronnie Sahlberg
9e5535adfd
Reconnect: If we are logged in and we experience a session failure, then
...
try to re-connect and redrive all I/O
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-05-01 18:46:30 +10:00
Ronnie Sahlberg
343d86dca7
get rid of the _async() scsi functions.
...
We dotn need two interfaces that only diuffer in whether they return a pointer or NULL vs an semiidentical interface that returns 0 or <0
All uses of _async() for scsi tasks should be replaced with the equivalent _task() function instead
2011-03-27 18:17:12 +11:00
Ronnie Sahlberg
f4f6ef5033
change dont automatically free the scsi_task once the callback completes.
...
Freeing the scsi_task structure is the responsibility of the application
to either do so during the callback, or later.
2011-03-27 17:53:05 +11:00
Ronnie Sahlberg
190ea92810
Rework error messages generated when login fails to not repeat the same
...
thing "Failed to login to target" several times as the error cascades
up through the layers of callbacks.
2011-01-02 12:12:30 +11:00
Ronnie Sahlberg
8a6665a092
Licence
...
Change to LGPL 2.1+ to be compatible with kvm/qemu
2010-12-11 11:47:28 +11:00
Ronnie Sahlberg
709d85c4da
Add a COPYING file and updat ehte LGPL boilerplate
2010-12-05 11:11:37 +11:00
Ronnie Sahlberg
098bc5a9a7
Initial import of libiscsi
2010-12-05 08:24:57 +11:00