Commit Graph

235 Commits

Author SHA1 Message Date
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
Ronnie Sahlberg
dc01df1e00 New version 1.3.0 2012-04-23 18:24:06 +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
d71a9d4f95 Add support for BLOCK LIMITS VPD page
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-04-20 17:57:40 +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
422bc32ce8 Add support for INQUIRY LOGICAL_BLOCK_PROVISIONING page
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-04-19 20:09:14 +10:00
Ronnie Sahlberg
50594830bd Task Management. When we abort a task or a task set, or reset the lun or target
we must also cancel all active tasks.
This will trigger all affected tasks to have their callback invoked with
SCSI_STATUS_CANCELLED
2012-03-10 12:12:47 +11:00
Ronnie Sahlberg
3f44347dae fix compiler warning 2012-03-10 12:09:21 +11:00
Ronnie Sahlberg
a5d81fc16a fix some compiler warnings 2012-03-10 12:08:05 +11:00
Ronnie Sahlberg
ed1d957ec9 fix a compiler warning 2012-03-10 12:02:01 +11:00
Ronnie Sahlberg
846ace255a Autoconf: Remove AS_SET_STATUS to be compatible with autoconf < 2.65 2012-03-10 10:55:48 +11:00
Ronnie Sahlberg
263f1b86d8 Makefile.am add COPYING and the two licence files 2012-03-10 10:40:31 +11:00
Ronnie Sahlberg
adf54603fc MAKERPMS: include the proper LICENCE-GPL and/or LICENCE-LGPL in the packages 2012-03-10 10:36:57 +11:00
Ronnie Sahlberg
b3e4ff657f Merge branch 'master' of github.com:sahlberg/libiscsi 2012-03-07 14:46:20 +11:00
Ronnie Sahlberg
c90f674a4d New version 1.2.0
This versions returns the library to the original name libiscsi
2012-03-07 14:32:51 +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
afc68462f7 Update README to point to where release tarballs are and the mailinglist 2012-03-05 18:14:53 +11:00
Ronnie Sahlberg
9f8ad49133 We don't need COPYING.LESSES since we now provide explicite
copies of both GPLv2 and LGPLv2.1 licence texts
2012-03-05 13:51:10 +11:00
Ronnie Sahlberg
c2da7c9680 Update the licence texts 2012-03-05 13:50:10 +11:00
Ronnie Sahlberg
367f490edf Clarify the licencing terms in COPYING and also add explicit copies for GPL2/LGPL2.1 licence text 2012-03-04 16:50:10 +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
0a0dfc4d65 TEST-TOOL: only do the read10 rdprotect test for SBC devices 2012-02-05 07:39:10 +11:00
Ronnie Sahlberg
32ba166040 TEST-TOOL: READ10 with invalid rdprotect should fail with invalid_field_in_cdb 2012-02-05 07:35:33 +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
Ronnie Sahlberg
b9bae6f4a7 Update libiscsi patch for sg3-utils to 1.32 2012-01-17 20:33:34 +11:00
Ronnie Sahlberg
6ecf536e86 Rename a varialbe to get rid of compiler warning 2011-12-31 10:31:23 +11:00
Ronnie Sahlberg
114c81390f Remove unused variable 2011-12-31 10:29:41 +11:00
Ronnie Sahlberg
d486d466c8 Cast an expression to get rid of a compiler warning 2011-12-31 10:28:34 +11:00
Ronnie Sahlberg
f4223d96c7 Remove unused variable 2011-12-31 10:26:43 +11:00
Ronnie Sahlberg
626734e52f Remove an unused variable 2011-12-31 10:25:52 +11:00
Ronnie Sahlberg
8e7e29a52b Remove an unused variable 2011-12-31 10:24:37 +11:00
Ronnie Sahlberg
72358be5a3 New version 1.1.0
This fixes a bug with AbortTask/AbortTaskSet sending the command to the wrong LUN
2011-12-25 07:09:02 +11:00
Ronnie Sahlberg
7b9bdaafb1 TMGMT: dont hardcode the lun we send to to 2, use the lun that is passed in as argument 2011-12-19 15:43:27 +11:00
Ronnie Sahlberg
fa4d3aa7eb README: We dont carry a patch for QEMU any more. 2011-10-29 11:36:38 +11:00
Ronnie Sahlberg
ee59afd87c Remove patch for QEMU
QEMU now contain the patches to link with and use libiscsi
so we dont need to carry an external patch for qemu in the libiscsi
package any more.
2011-10-29 08:14:07 +11:00