Ronnie Sahlberg
6003000809
Add VERIFY16 support and tests
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-04 20:16:44 +10:00
Ronnie Sahlberg
f6fd18ee3a
TEST: Fix cutnpaster typo
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-03 14:42:04 +10:00
Ronnie Sahlberg
34778d353c
TEST: Add test for READ16 at LBA 2^63.
...
Surprisingly many targets do a LBA << 9 to covert to file offset internally
and thus return data from LBA==0 instead of returning a check condition and lba out of range
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-03 14:35:33 +10:00
Ronnie Sahlberg
d908c1a642
TESTS: Improve the tests when reading from LBA -1
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-03 10:16:18 +10:00
Ronnie Sahlberg
26873ea6ce
TESTS: Improve tests for reading at LBA -1
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-03 10:05:42 +10:00
Ronnie Sahlberg
5eca632542
TEST-TOOL: Allow wildcards for the test name.
...
So that you can run for example all read10 tests using
./bin/iscsi-test --test='*read10*' iscsi://127.0.0.1/iqn.ronnie.test/1
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-03 09:15:09 +10:00
Ronnie Sahlberg
288fd5e9fe
TEST-TOOL: Add a --info argument to print more detailed infor what a test does
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-03 09:08:12 +10:00
Ronnie Sahlberg
9e09a46ddd
LOGIN: Once the login phase has finished, bump ITT by one
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-02 17:51:10 +10:00
Ronnie Sahlberg
819248a519
LOGIN: Dont increment the ITT if the target wants another round of LOGIN
...
If the login phase takes multiple login requests we should keep the ITT the same for all login requets and not increment it.
A multi-phase login is only a single task eventhough it may be spread across multiple login requetst.
While most targets are forgiving and still work if we increment the ITT for each login command, some targets such as SOLARIS/COMSTAR is NOT forgiving if we break the protocol in this situation.
Fix the ITT handling so that we dont make SOLARIS/COMSTAR upset.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-06-02 15:41:38 +10:00
Ronnie Sahlberg
a0a4677dfa
TEST: Add GET_LBA_STATUS test for LBA out of range
2012-05-30 19:07:39 +10:00
Ronnie Sahlberg
812df62bfd
SBC: Add GET_LBA_STATUS support and simple test
2012-05-30 18:41:12 +10:00
Ronnie Sahlberg
6be4a82407
Remove some unused variables
2012-05-30 18:23:15 +10:00
Ronnie Sahlberg
824a33c834
win32 set the socket to nonblocking moe for win32
2012-05-15 22:08:10 +10:00
Ronnie Sahlberg
db8dadab21
win32 updat ethe example app iscsiclient to compile and link with the compatibility functions
2012-05-15 21:59:59 +10:00
Ronnie Sahlberg
e4739d639f
win32: build the library with win32_compat functions and also link the dll with kernel32 to get Sleep()
2012-05-15 21:57:05 +10:00
Ronnie Sahlberg
dafa186868
win32: connect.c needs the compatibility functions
2012-05-15 21:54:10 +10:00
Ronnie Sahlberg
201d6c3b54
win32: sinc.c need the compatibility header so it finds the replacement for poll()
2012-05-15 21:51:53 +10:00
Ronnie Sahlberg
7215a917f2
win32: create a compatibility macro for sleep()
2012-05-15 21:49:29 +10:00
Ronnie Sahlberg
6c23b6acc1
win32: remove some definitions we dont need in the win32 compatibility header
2012-05-15 21:47:45 +10:00
Ronnie Sahlberg
05d2f81a84
win32: unistd.h is not available under win32
2012-05-15 21:45:30 +10:00
Ronnie Sahlberg
ec0d9682a7
Dont use FIONREAD just rely on the fact the socket is nonblocking and look for EAGAIN when we reach the end of available data.
...
From Paolo Bonzini <pbonzini@redhat.com >
2012-05-15 20:32:37 +10:00
Michael Tokarev
bb685e91f1
include stdlib.h for random declaration in test-tool/0132_verify10_mismatch_no_cmp.c
...
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2012-05-15 17:18:52 +10:00
Michael Tokarev
23b40111fc
ignore m4/ directory and (re)create it in autogen.sh
...
m4/ is used by auto* tools to store (mostly libtool)
generated files. Without it being present, autoreconf&Co
does not work, and with it present, git mentions untracked
files. Fix both.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2012-05-15 17:18:11 +10:00
Ronnie Sahlberg
83730f7d4c
w32: dont export our version of poll.
2012-05-13 17:21:53 +10:00
Ronnie Sahlberg
1c63b55e20
W32: update libiscsi.def with all new and missing symbols
2012-05-13 17:05:25 +10:00
Ronnie Sahlberg
bd48629c8b
W32: copy the compatibility functions for poll (and some others) from libnfs so win32 can use a porper poll emulation in the future.
2012-05-13 16:48:50 +10:00
Ronnie Sahlberg
ed4b8ec72e
W32: Remove our poor emulation of poll() from the w32 build.
2012-05-13 16:46:38 +10:00
Michael Tokarev
261924d73a
export only required symbols, do not export internal symbols from the library
...
Hopefully I collected the list of symbols to expot correctly.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2012-05-12 08:46:06 +10:00
Michael Tokarev
aee0e3bf72
always export iscsi_set_tcp_keepalive()
...
Set only the (socket) options which are defined on a given platform.
The function becomes a no-op if no option is known at complie time.
Remove autoconf test for HAVE_TCP_KEEPALIVE too.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2012-05-12 08:41:34 +10:00
Ronnie Sahlberg
c91de1e35a
We might be called by some eventsystems with POLLIN eventhough there is
...
no data to read from the socket and there is no error.
For this case, if FIONREAD tells us that there are 0 bytes to read, check if
there is a socket error and return ok/error based on that.
Some eventsystems may cause this to burn some cpu if the socket is ok
but there are no bytes available to read by invoking POLLIN over and over, but it is better than failing the application.
2012-05-10 20:04:22 +10:00
Ronnie Sahlberg
935fd9da8c
We dont/shouldnt keep m4 directory under version control
2012-05-05 15:18:54 +10:00
Ronnie Sahlberg
e63b83e3d8
New version 1.4
2012-05-03 18:48:52 +10:00
Ronnie Sahlberg
fc399ab127
TEST: Add simple tests for prefetch10/16
2012-05-03 18:42:32 +10:00
Ronnie Sahlberg
733b97f4b8
Add PREFETCH10/16 implementations
2012-05-03 06:21:49 +10:00
Ronnie Sahlberg
c02a952911
Fix some cut and paste typos
2012-05-02 23:44:20 +10:00
Ronnie Sahlberg
33a398f21c
TESTS Add basic tests for write12/16
2012-05-02 23:15:41 +10:00
Ronnie Sahlberg
02bbaa7007
TESTS: We have proper tests for READ12/16 now so we can remove the old rdprotect tests
2012-05-02 21:48:01 +10:00
Ronnie Sahlberg
ac3da5df38
TESTS: fix bug in read 0 blocks at end of device.
...
rc16->returned_lba is the lba of the last block which can be accessed on the device, not the first block beyond the end of the device
2012-05-02 21:41:44 +10:00
Ronnie Sahlberg
9e303bf635
TEST: Add a test reading beyond the end of the device for read12/16
2012-05-02 21:38:43 +10:00
Ronnie Sahlberg
a1c54d7265
TESTS: Add test to READ 12/16 when reading 0 blocks
2012-05-02 21:23:15 +10:00
Ronnie Sahlberg
34b290c287
TESTS add test for READ12/16 DPO/FUA/FUA_NV bits
2012-05-02 20:28:05 +10:00
Ronnie Sahlberg
2e3126b9ac
TESTS: add tests for READ12/16 RDPROTECT for luns without protection information
2012-05-02 20:14:51 +10:00
Ronnie Sahlberg
ce0c912b54
TEST: add simple test for READ12
2012-05-02 18:51:37 +10:00
Ronnie Sahlberg
974738968d
Implement READ/WRITE_12/16 and a simple test for read16
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-05-01 21:54:32 +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
256415e284
Remove a backup file from an editor that is not really part of the package
2012-05-01 06:54:01 +10:00
Ronnie Sahlberg
9c6447b73a
SENSE: add a sense key and an ascq
2012-04-28 15:03:43 +10:00
Ronnie Sahlberg
568e4ddfcc
SBC: Add support for WRITESAME16 and add simple tests using it to unmap blocks from a thin provisioned lun
2012-04-28 14:34:47 +10:00
Ronnie Sahlberg
d620cf4fd2
TEST: Add a test to verify that WRITESAME10 to unmap a fraction of a physical block will fail with an error
2012-04-28 14:14:55 +10:00
Ronnie Sahlberg
cc0fa15e14
SBC: Add support for WRITESAME10 and a simple test for using writesame10 to unmap blocks from thin provisioned luns
2012-04-28 13:55:37 +10:00