b160b95060
TESTS: Add 'initiator2' variable so we can run tests with two different initiatir names
Ronnie Sahlberg
2012-09-30 08:25:23 -07:00
2b6bc6c687
test: Add test to release from second initiator when already reserved by first initiator.
Jon Grimm
2012-09-28 10:09:14 -05:00
2a2f246615
test: reserve_basic: mem leak cleanup
Jon Grimm
2012-09-28 11:27:20 -05:00
32d9f760d2
test: Add test to release from second initiator when already reserved by first initiator.
Jon Grimm
2012-09-28 10:09:14 -05:00
da893b0cf9
TEST 0420 cosmetic printf change
Ronnie Sahlberg
2012-09-27 18:49:38 -07:00
0aa14bbe39
TEST: 0420 some cosmetic printf changes
Ronnie Sahlberg
2012-09-27 18:47:15 -07:00
c3adf1d814
Merge pull request #20 from jongrimm/master
Ronnie Sahlberg
2012-09-27 18:39:22 -07:00
ce2db039a5
TEST: try to make 0410 nicer
Ronnie Sahlberg
2012-09-27 18:29:57 -07:00
602f89f060
TEST: reserve6_basic: Bail with success if command simply isn't supported.
Jon Grimm
2012-09-27 14:33:32 -05:00
26d090e191
Add testcase for RESERVE6/RELEASE6
Jon Grimm
2012-09-27 14:17:24 -05:00
c7d8d2593c
Add RESERVE6/RELEASE6 Support.
Jon Grimm
2012-09-27 12:45:06 -05:00
85e427ea54
SCSI: READTOC change alloclen to a uint32 and encode it in the CDB
Ronnie Sahlberg
2012-09-25 06:54:01 -07:00
b6ac94ed18
Merge pull request #18 from jongrimm/master
Ronnie Sahlberg
2012-09-24 17:08:59 -07:00
1619d0e404
TEST: readtoc_basic: check that TOC of lba 0 matches TOC of lba 1
Jon Grimm
2012-09-24 13:49:18 -05:00
67f640f692
TEST: readtoc_basic: change copyright. Add readcapacity to see if media present, and test appropriate read toc behavior if not present.
Jon Grimm
2012-09-24 13:14:09 -05:00
c3c1628c1d
read TOC: set XFER_NONE when xferlen==0 to match Ronnie's change
Jon Grimm
2012-09-24 10:43:07 -05:00
d6bea3db52
merge fixup
Jon Grimm
2012-09-24 10:22:58 -05:00
e55ec72f36
Add Read TOC (0x43) Command Support (and basic testcase).
Jon Grimm
2012-09-24 10:15:00 -05:00
3860520267
TESTS: fix typo
Ronnie Sahlberg
2012-09-21 20:26:40 -07:00
ba14452dc2
TEST: Add a test that reads all reported VPD pages and validates qualifier, type and page-code in the returned data
Ronnie Sahlberg
2012-09-21 20:15:04 -07:00
addc6e53d7
TEST: fix typo in test name
Ronnie Sahlberg
2012-09-21 19:32:00 -07:00
be4f2fdf66
TESTS: Add a test that all mandatory SPC pages are supported by the target
Ronnie Sahlberg
2012-09-21 18:52:51 -07:00
703d9120bc
TEST: Add test for TESTUNITREADY
Ronnie Sahlberg
2012-09-20 19:38:30 -07:00
6e2f04455f
TEST: Add a test that INQUIRY where EVPD==0 but PAGE_CODE!=0 is an error
Ronnie Sahlberg
2012-09-20 18:27:04 -07:00
62b8681409
SCSI: Fix all remaining places where alloc_len==0 means xfer direction should be == NONE
Ronnie Sahlberg
2012-09-19 19:43:01 -07:00
f5d8b61397
TESTS: Change INQ alloc_len test to also test the case where alloc_len is 0
Ronnie Sahlberg
2012-09-19 18:25:07 -07:00
8f98cf3e12
INQUIRY: When alloc_len is set to 0 we should set XFER direction to NONOE, not READ
Ronnie Sahlberg
2012-09-19 18:23:54 -07:00
641027283b
TESTS: Add a new test to check standard INQ alloclen
Ronnie Sahlberg
2012-09-18 19:45:42 -07:00
f3e9ec00c2
Merge branch 'master' of github.com:sahlberg/libiscsi
Ronnie Sahlberg
2012-09-14 18:23:19 -07:00
4b250c0abb
Merge pull request #17 from jongrimm/master
Ronnie Sahlberg
2012-09-14 18:20:49 -07:00
a434a90d64
ld_iscsi: minor, use value already calculated in 'lba' local var in call to readcapacity
Jon Grimm
2012-09-14 12:27:37 -05:00
74496e36fd
ld_iscsi: don't try to read beyond last lba
Jon Grimm
2012-09-14 12:22:07 -05:00
eb90ab98c1
ld_iscsi: return block size for stat and friends
Jon Grimm
2012-09-14 12:02:05 -05:00
60a96e0ebf
off by one error for calculating num_blocks
Jon Grimm
2012-09-14 11:19:09 -05:00
6abb5ccc54
TEST: change to the SPC-4 definition of ASCII
Ronnie Sahlberg
2012-09-13 15:12:30 -07:00
2e33754228
TESTS: Expand the INQUIRY tests for the standard page
Ronnie Sahlberg
2012-09-12 07:29:40 -07:00
ead085ecd0
SCSI: INQUIRY fullsize is additional-length + 5, not +3
Ronnie Sahlberg
2012-09-12 07:07:04 -07:00
dd006029a2
SCSI: Add unmarshalling of inquiry ADITIONAL_LENGTH field
Ronnie Sahlberg
2012-09-12 06:57:41 -07:00
6b28465a46
TESTS: Add basic test of standard INQUIRY data
Ronnie Sahlberg
2012-09-12 06:55:51 -07:00
8a9970069f
TESTS: STARTSTOPUNIT expand the basic tests to cover both immed==0 and immed==1
Ronnie Sahlberg
2012-09-10 21:34:35 -07:00
ed70ced748
TEST: Add test for the flags in STARTSTOPUNIT
Ronnie Sahlberg
2012-09-10 21:24:35 -07:00
9fdb2b16b4
TESTS: Add a test for READCAPACITY16 with allocation-length == 0
Ronnie Sahlberg
2012-09-10 20:35:09 -07:00
ed1c3e1129
TESTS: Fix all 0block tests
Ronnie Sahlberg
2012-09-10 19:08:57 -07:00
9d15c1ea40
TESTS: 0100: change command names to upper-case in logging
Ronnie Sahlberg
2012-09-10 17:49:17 -07:00
ca3ac9cafd
TESTS: Improve error reporting for *beyondeol* tests
Ronnie Sahlberg
2012-09-10 08:38:21 -07:00
ef5a1e20a4
Merge pull request #16 from bonzini/iscsi-test
Ronnie Sahlberg
2012-09-09 16:34:49 -07:00
d155231341
test-tool: 0171 is using different 0-block semantics than other tests
Paolo Bonzini
2012-09-06 16:53:02 +02:00
a60c23887c
test-tool: return SKIPPED exit code from 0191 when LBPPB = 1
Paolo Bonzini
2012-09-06 16:56:18 +02:00
3af45a0677
TEST: add test for prefetching 0 blocks from a device
Ronnie Sahlberg
2012-09-05 20:17:50 -07:00
8f11b127fe
TEST: Add test for PREFETCH10/16 beyond eol
Ronnie Sahlberg
2012-09-05 19:42:14 -07:00
ca6875e69d
TESTS: Add tests for the flags for PREFETCH10/16
Ronnie Sahlberg
2012-09-05 19:17:16 -07:00
e78c5ae8a4
Merge pull request #14 from bonzini/iscsi-test
Ronnie Sahlberg
2012-09-04 19:15:18 -07:00
0abacf8fa4
test-tool: 0214 was reading twice from -1
Paolo Bonzini
2012-09-04 18:34:11 +02:00
61488fd381
New version 1.0.6
Ronnie Sahlberg
2012-09-03 10:17:43 -07:00
d6bbe8fe44
TESTS: PREFETCH10/16, add test for prefetch-lengt==0
Ronnie Sahlberg
2012-09-03 10:00:53 -07:00
81e935ffb0
TESTS: PREFETCH10/16 are optional. Skip test if not supported on target
Ronnie Sahlberg
2012-09-03 09:52:43 -07:00
116af01156
TYPO: Change periperal_device_type to just device_type but leave the old name as a define for backward compatibility
Ronnie Sahlberg
2012-09-03 09:45:59 -07:00
77fc2497f7
TESTS: Change all tests to use 'block_size' instead of hardcoded 512
Ronnie Sahlberg
2012-09-03 08:58:56 -07:00
5639b92d95
Improve documentation for when tasks may be cancelled
Ronnie Sahlberg
2012-08-31 16:18:59 -07:00
6ef4bbd3e1
TEST: add back extra test for invalid buffer offsets
Ronnie Sahlberg
2012-08-31 16:15:53 -07:00
6a24b283f8
TEST: If we timeout a test, drop all wait/out pdus from the list we dont want the callbacks anymore.
Ronnie Sahlberg
2012-08-31 16:12:21 -07:00
c526b9e954
TESTS: remove compiler warnings
Ronnie Sahlberg
2012-08-31 15:26:23 -07:00
09573068ad
TESTS: Skipped tests should return -2
Ronnie Sahlberg
2012-08-31 14:19:11 -07:00
4df1525415
TESTS: Additional checks for missing opcodes and skipping tests
Ronnie Sahlberg
2012-08-31 11:42:44 -07:00
f3aacb3a5d
TESTS: skip COMPARE-AND-WRITE tests on targets missing this opcode
Ronnie Sahlberg
2012-08-31 11:18:55 -07:00
98d18d5c42
TESTS: Add remaining checks for *verify* opcode not implemented skip test
Ronnie Sahlberg
2012-08-30 20:30:28 -07:00
8bc3d51cd4
TESTS: improve verify tests to detect/abort on opcode not supported furthter
Ronnie Sahlberg
2012-08-30 20:22:16 -07:00
b4594c1ff3
TESTS: Add check and skip tests for targets that do not implement VERIFY*
Ronnie Sahlberg
2012-08-30 20:09:53 -07:00
dcc41d5c43
Merge branch 'master' of github.com:sahlberg/libiscsi
Ronnie Sahlberg
2012-08-30 16:08:57 -07:00
01d3450ef5
Merge pull request #13 from bonzini/master
Ronnie Sahlberg
2012-08-30 16:08:10 -07:00
e4377e7d91
iscsi-test: return -2 when skipping tests
Paolo Bonzini
2012-08-30 17:12:46 +02:00
c7b519524c
iscsi-test: prepare to return exit status 77 for skipped tests
Paolo Bonzini
2012-08-30 17:12:35 +02:00
f04471d642
iscsi-test: do not test read-only for non-SBC devices
Paolo Bonzini
2012-08-30 17:10:40 +02:00
418058e52a
iscsi-test: do not test DPO/FUA for non-SBC devices
Paolo Bonzini
2012-08-30 16:59:35 +02:00
560241b494
iscsi-test: avoid declaring struct inside parameter list
Paolo Bonzini
2012-08-30 16:55:32 +02:00
778aacb47f
fix building out-of-tree
Paolo Bonzini
2012-08-30 16:59:13 +02:00
7b3c04a43c
Use a better iqn name for ld_iscsi.so
Ronnie Sahlberg
2012-08-17 14:50:40 +10:00
d1c7b17cf5
TEST: Start adding tests for invalid BUFFEROFFSET in DATA-IN
Ronnie Sahlberg
2012-08-12 12:51:37 +10:00
7c2fada513
TEST: Add test that DATASN in reverse order is detected as an error
Ronnie Sahlberg
2012-08-12 11:12:12 +10:00
5754851b9d
TESTS: More tests for invalid DATASN
Ronnie Sahlberg
2012-08-10 16:48:17 +10:00
6412834754
TEST: Add test that invalid DATASN for DATAIN is detected as an error
Ronnie Sahlberg
2012-08-10 16:08:55 +10:00
0cf42c3662
TESTS: Add a test for ISCSI CMDSN out of range
Ronnie Sahlberg
2012-08-10 15:36:10 +10:00
1a387632a9
TEST: Use better default iscsi name for the test tool
Ronnie Sahlberg
2012-08-10 11:27:10 +10:00
b7f342906f
Change to proper default IQN names for the iscsi-ls/-inq utilities
Ronnie Sahlberg
2012-08-10 10:17:47 +10:00
8eedcfed60
Merge pull request #12 from bonzini/libiscsi-tarball
Ronnie Sahlberg
2012-08-09 14:17:27 -07:00
b5d6a9ff6f
include lib/libiscsi.syms in tarball
Paolo Bonzini
2012-08-09 15:22:45 +02:00
185649144d
Update the MTX patch for libiscsi. MTX sets XFER-direction to "WRITE" even if the xfer length is 0 Catch this condition so that we pass XFER-direction==NONE to libiscsi for this case
Ronnie Sahlberg
2012-08-09 20:46:54 +10:00
08034c3335
SYNC CONNECT: make sure state is non-NULL before we dereference it
Ronnie Sahlberg
2012-08-09 08:46:29 +10:00
06cc2d2ece
CONNECT: connect data is not always malloc()ed so we can demand it is free()able
Ronnie Sahlberg
2012-08-09 08:27:48 +10:00
a98b6e63f0
MAXCMDSN: Stop sending new PDUs to the target when maxcmdsn is reached
Ronnie Sahlberg
2012-08-02 09:46:42 +10:00
71be26ad03
Add tracking of MAXCMDSN
Ronnie Sahlberg
2012-08-02 09:09:22 +10:00
439f68e555
CONNECTION: Track the connection state and callback via the context structure
Ronnie Sahlberg
2012-08-02 08:51:25 +10:00
d5d062a494
TESTS: For the invalid tests, treat the target dropping the session as OK
Ronnie Sahlberg
2012-08-01 16:38:30 +10:00
77d8e41be7
TESTS: Add a mechanism to temporarily disable the session reconnect
Ronnie Sahlberg
2012-08-01 16:32:40 +10:00
98b0a757b2
R2T: Reset datasn to 0 everytime we start a new sequence from r2t
Ronnie Sahlberg
2012-08-01 13:44:03 +10:00
1f98c40edf
DATASN: We have to increment DATASN in each DATA-OUT PDU in a sequence.
Ronnie Sahlberg
2012-08-01 13:30:13 +10:00
2a15e39460
Add a new sense code
Ronnie Sahlberg
2012-07-30 07:38:38 +10:00
9986cd85d7
ISCSI: Support devices with more than 255 LUNs
Ronnie Sahlberg
2012-07-25 13:24:55 +10:00
fbc4f3584b
TEST: Add initial test for "test that all mandatory SBC commands are there"
Ronnie Sahlberg
2012-07-22 08:52:25 +10:00