Commit Graph

40 Commits

Author SHA1 Message Date
Ronnie Sahlberg
f6705d4691 TESTS: Add tests for writing beyond the end of the LUN for WRITEVERIFY10/12/16 2012-07-14 10:54:15 +10:00
Ronnie Sahlberg
477ee0f6f6 TEST: Add wrprotect tests for WRITEVERIFY10/12/16 2012-07-14 08:54:00 +10:00
Ronnie Sahlberg
df30827992 Add simple tests for WRITEVERIFY10/12/16 2012-07-14 08:41:04 +10:00
Ronnie Sahlberg
eaff5a4e4e TESTS: Add a test that write/unmap fails on read-only devices 2012-07-13 10:04:42 +10:00
Ronnie Sahlberg
7e0e732128 Add tests for writing 0 blocks with WRITESAME10/16 2012-06-24 07:30:03 +10:00
Ronnie Sahlberg
e7c8a173ab Add tests for the WRPROTECT bits for WRITESAME10/16 2012-06-23 21:40:58 +10:00
Ronnie Sahlberg
14a70127ce Add tests for WRITESAME10/16 for writing beyond the end of the device 2012-06-23 21:18:38 +10:00
Ronnie Sahlberg
1d3e910769 TESTS: Add tests for WRITE10
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-05 19:36:25 +10:00
Ronnie Sahlberg
5ccf2f4d87 Add tests for verify10/16 for lba out of range
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-04 20:45:59 +10:00
Ronnie Sahlberg
9130d2eb45 Add support for VERIFY12 and tests
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-04 20:35:15 +10:00
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
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
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
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
Ronnie Sahlberg
fc399ab127 TEST: Add simple tests for prefetch10/16 2012-05-03 18:42:32 +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
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
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
Ronnie Sahlberg
521f0a5a95 TEST: Add a test of various uses for UNMAP but no blocks to actually unmap. 2012-04-22 08:46:14 +10:00
Ronnie Sahlberg
dd5f94b2ca Add support for UNMAP command and add a simple test for this opcode 2012-04-22 08:09:15 +10:00
Ronnie Sahlberg
86bf89aabf Add support for READCAPACITY16
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-04-20 17:56:39 +10:00
Ronnie Sahlberg
263f1b86d8 Makefile.am add COPYING and the two licence files 2012-03-10 10:40:31 +11:00
Ronnie Sahlberg
add1ce67e4 Revert "Rename libiscsi to libiscsiclient to avoid clash with obscure linux library"
We dont need to change name anymore so witch back to original libiscsi name

This reverts commit c4386dfb87.
2012-03-07 14:30:37 +11:00
Ronnie Sahlberg
c4386dfb87 Rename libiscsi to libiscsiclient to avoid clash with obscure linux library
Change to version 2
2012-03-03 17:01:37 +11:00
Ronnie Sahlberg
2b521b4d24 TEST-TOOL: add test for read16/rdprotect 2012-02-05 07:56:35 +11:00
Ronnie Sahlberg
b4573178ca TEST-TOOL: Add test for read12/rdprotect 2012-02-05 07:52:30 +11:00
Ronnie Sahlberg
5c273ca58c Add VERIFY10 test for BYTCHK==0
If BYTCHK is zero  the target should NOT perform a compare of data in buffer with data on media, so if we send knowingly bad data to compare with
the target shall not detect the miscompare but return sgtatus good.
2012-01-27 16:35:23 +11:00
Ronnie Sahlberg
62684d641a Add a test to check that if we deliberately send wrong data to the target it will reposnd with sense MISMATCH
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-01-26 16:18:05 +11:00
Ronnie Sahlberg
cff996a96d VERIFY10: Add support for VERIFY10. Also add a simple test for verify10 2012-01-26 15:47:14 +11:00
Paolo Bonzini
b4bddce2c6 compile the library if popt is not available 2011-10-28 17:05:00 +02:00
Paolo Bonzini
17319072b1 use automake and libtool
This commits replaces the handwritten makefile with automake+libtool.
There is some hackery needed for the LD_PRELOAD shared library,
but apart from that there is nothing special and it is a large gain in
portability and standardization.

The spec file is modified as little as is needed to properly build
the RPMs.
2011-10-28 17:04:59 +02:00