Ronnie Sahlberg
ed17e17f8e
Fix broken makefile
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-16 07:06:43 -07:00
Ronnie Sahlberg
29e2ae2868
Merge pull request #175 from plieven/timeout
...
reconnect: copy scsi_timeout on reconnect
2015-06-16 06:09:16 -07:00
Peter Lieven
1ceb216394
pdu: timed out pdus might have no callback
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2015-06-16 12:14:11 +02:00
Peter Lieven
85fc823f59
pdu: do not leak timed out pdus
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2015-06-16 12:08:13 +02:00
Peter Lieven
7dd62aca61
pdu: add more debugging info for timed out commands
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2015-06-16 12:06:59 +02:00
Peter Lieven
0a3e157844
reconnect: copy scsi_timeout on reconnect
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2015-06-16 11:33:57 +02:00
Ronnie Sahlberg
65eb400891
Merge pull request #174 from agrare/master
...
test_modesense6_control_swp test: read current control before modesel…
2015-06-12 06:42:11 -07:00
Adam Grare
838c35b693
test_modesense6_control_swp test: read current control before modeselect6
...
After checking if SWP can be changed the current control page has
to be read back before sending it to initiator with modeselect6.
2015-06-11 16:48:43 -04:00
Ronnie Sahlberg
f240ef1cc7
Merge pull request #173 from rodrigc/fix4
...
reserve6 tests: fix login parameters
2015-06-04 00:15:52 -07:00
Ronnie Sahlberg
c7398ac0d1
Merge pull request #171 from rodrigc/fix2
...
test_modesense6_control_swp: skip test if target cannot change swp
2015-06-04 00:13:37 -07:00
Ronnie Sahlberg
514de96e15
TEST-TOOL: We need to include the multipath header in the dist files
...
or else we break all building of RPMs, which is not good.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-04 00:04:55 -07:00
Craig Rodrigues
7fe7891e84
reserve6 tests: fix login parameters
2015-06-03 20:23:09 +00:00
Craig Rodrigues
1995298914
test_modesense6_control_swp: skip test if target cannot change swp
...
Signed-off-by: Vadim Finkelstein <vadim@pi-coral.com >
2015-06-03 18:54:29 +00:00
Ronnie Sahlberg
3f73f00b25
Merge pull request #168 from rodrigc/fix1
...
test_reserve6_target_cold_reset: fix login parameters
2015-06-02 19:39:02 -07:00
Craig Rodrigues
ff7a73360a
test_reserve6_target_cold_reset: fix login parameters
...
Signed-off-by: Vadim Finkelstein <vadim@pi-coral.com >
2015-06-03 02:30:31 +00:00
Ronnie Sahlberg
a8e42680ed
MULTIPATH TESTS: Remove the iscsi-only restriction. The tests work for /dev/* too
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-01 21:28:49 -07:00
Ronnie Sahlberg
2388db9f12
MULTIPATH TEST: use READ10/WRITE10 instead of READ16/WRITE16
...
Many small devices do not implement the 16 version of these commands.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-01 21:27:51 -07:00
Ronnie Sahlberg
3601799a1b
MULTIPATH TESTS: fix another bug where we did an inquiry for the wrong page
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-01 21:18:28 -07:00
Ronnie Sahlberg
95d763d9f9
TESTS: Add comment to describe why we keep a pointer around for iscsi_queue_pdu
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-01 21:16:39 -07:00
Ronnie Sahlberg
86a42c8b3a
MULTIPATH TESTS: pass the right pointer back when copying a des
...
Else we will double free and crash.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-01 19:39:13 -07:00
Ronnie Sahlberg
86df6c9a20
MULTIPATH TESTS: We need to pass the correct evpv/pagecode when we reissue an inquiry
...
When we reissue an inquiry due to the firast attempt not containing
all of the data, make sure to ask for the same page once we know the
proper size and ask again.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-06-01 19:30:19 -07:00
Ronnie Sahlberg
73102aeddd
Merge pull request #167 from ddiss/test-multipath-v2
...
test: multipath support v2
2015-06-01 07:06:29 -07:00
David Disseldorp
34dea87a69
test: add simple multipath IO test
...
Write data to device via one path, then read back using a different
path. Confirm that data is correct.
Signed-off-by: David Disseldorp <ddiss@suse.de >
2015-05-28 19:27:21 +02:00
David Disseldorp
43b47cf1fb
test/multipath: add MPATH_SKIP_IF_UNAVAILABLE macro
...
Check whether multiple SCSI device paths are available, if not then skip
the test.
Signed-off-by: David Disseldorp <ddiss@suse.de >
2015-05-28 16:56:21 +02:00
David Disseldorp
024fe873e3
iscsi-test-cu: support multiple iSCSI URLs for multipath
...
Connect to each iSCSI URL provided, and confirm that they all correspond
to the same multipathed logical unit by using the previously added
mpath_check_matching_ids() helper.
Signed-off-by: David Disseldorp <ddiss@suse.de >
2015-05-28 16:56:18 +02:00
David Disseldorp
a291c2b308
test: add multipath helper functions
...
mpath_check_matching_ids() walks the list of scsi devices, and confirms
that all entries share one common device identification designator or
unit serial number.
Signed-off-by: David Disseldorp <ddiss@suse.de >
2015-05-28 16:52:54 +02:00
Ronnie Sahlberg
0630aa5ef0
Timeouts: Fix bugs in scsi task timeout code
...
Add a test to verify the pdu timeout handling.
Fix numerous bugs in the timeout handling. It was really broken.
Add test for non-SCSI task PDUs too and verify they works.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-24 14:34:06 -07:00
Ronnie Sahlberg
cb4ad5f774
Connect: Don't use the TUR checks on re-connects
...
Only use TUR to eat any pending unit attentions on the initial connect
but not during reconnect.
From Peter Lieven <pl@kamp.de >
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-19 19:21:26 -07:00
Ronnie Sahlberg
2f10f05084
TESTS: improve text output for test_report_supported_opcodes_rctd
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-13 19:54:50 -07:00
Ronnie Sahlberg
6e4a84f815
TESTS Add the modesense tests to the linux family
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-13 19:50:24 -07:00
Ronnie Sahlberg
d9352865c2
TESTS: Skip the test with a warning if BlockDevChar VPD page is missing
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-12 20:30:04 -07:00
Ronnie Sahlberg
2a6264f76e
TESTS: Change ModeSense6.Control D_SENSE test to work with /dev/* devices
...
Stop calling out to libiscsi specific interfaces for faling a command
and checking the sense data. Use the now generic read16() which now works
also for normal device nodes.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-12 20:25:29 -07:00
Ronnie Sahlberg
b2b474f3ad
TESTS: Allow inquiry(block dev characteristics) to fail
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-12 20:25:11 -07:00
Ronnie Sahlberg
811c04f01a
TESTS: read12/read16 change signature to return an optional task structure
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-12 20:25:04 -07:00
Ronnie Sahlberg
20ef4b5687
README: Update the README with more unit test documentation
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-11 06:25:29 -07:00
Ronnie Sahlberg
1c9792941f
iscsi-perf: use uint64_t instead of u_int64_t
...
because portability
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-10 10:55:27 -07:00
Ronnie Sahlberg
45f667739c
login.c: use uint32_t instead of u_int32_t
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-10 10:55:18 -07:00
Ronnie Sahlberg
de0795928a
makerpms.sh : we dont need to configure from this script. rpmbuild will do it
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-10 10:04:20 -07:00
Ronnie Sahlberg
0ae2e936df
Add tests t Makefile.am subdirectories
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-10 10:04:04 -07:00
Ronnie Sahlberg
dfeefd6539
New version 1.14.0
...
- Add support to use /dev/* nodes instead of just iscsi devices.
- Create a dedicated test for the FUA/DPO flags
- Allow reusing the context after disconnect
- Fix non-randomness in rand_key()
- Add iscsi-perf tool
- Fix length bug when sending unsolicited data in iscsi_command
- Reqrite the reconnect logic to begome fully async
- Fix wrong checks for username in CHAP
- Support Bidirectional CHAP
- Improve handling of IMMEDIATE bit
- Cmdsn, statsn fixes+
- iscsi_which_events can return 0, which means that there are no events right
now but try again in a second or so.
- Ignore any ASYNC EVENTS we receive since we can not yet pass them back to
the application.
- Add initial make test support
- Various minor fixes to libiscsi and the test suite
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-10 09:14:11 -07:00
Ronnie Sahlberg
e0f1d58141
Add a README for the make test directiory
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-10 08:14:42 -07:00
Ronnie Sahlberg
d790209a8a
TESTS: use TGTPORTAL instead of a hardcoded port
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-09 15:47:15 -07:00
Ronnie Sahlberg
2170f656bc
Merge branch 'master' of github.com:sahlberg/libiscsi
2015-05-09 15:40:22 -07:00
Ronnie Sahlberg
86ce6a0ccd
TESTS: tgtd now had TGT_IPC_SOCKET so lets use it
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2015-05-09 15:39:45 -07:00
Ronnie Sahlberg
64ead1c3df
Merge pull request #164 from plieven/for_upstream
...
pdu: add known exceptions to target serial processing
2015-05-08 07:32:29 -07:00
Peter Lieven
6aa47691ce
pdu: add known execptions to target serial processing
...
Signed-off-by: Peter Lieven <pl@kamp.de >
2015-05-08 12:47:34 +02:00
Ronnie Sahlberg
9c58bf64f4
Merge pull request #163 from rodrigc/fix1
...
Skip unsupported tests instead of failing
2015-05-07 06:32:14 -07:00
Craig Rodrigues
3aec1a37a9
Skip unsupported tests instead of failing
...
* SCSI_REPORT_SUPPORTING_OPCODE
* SCSI_REPORT_SUPPORTING_SERVICEACTION
2015-05-07 07:09:13 -04:00
Ronnie Sahlberg
6b51466048
Merge pull request #162 from plieven/for_upstream
...
For upstream
2015-05-05 06:19:17 -07:00
Peter Lieven
a027931a2c
init: simplify the case that the freelist is full in iscsi_sfree
...
if the freelist gets full we are likely in a low load situation so
we do not need to make all the work copying the pointers.
Signed-off-by: Peter Lieven <pl@kamp.de >
2015-05-05 14:14:26 +02:00