Commit Graph

  • aee0e3bf72 always export iscsi_set_tcp_keepalive() Michael Tokarev 2012-05-12 01:20:01 +04:00
  • 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. Ronnie Sahlberg 2012-05-10 20:02:04 +10:00
  • 935fd9da8c We dont/shouldnt keep m4 directory under version control Ronnie Sahlberg 2012-05-05 15:18:54 +10:00
  • e63b83e3d8 New version 1.4 Ronnie Sahlberg 2012-05-03 18:48:52 +10:00
  • fc399ab127 TEST: Add simple tests for prefetch10/16 Ronnie Sahlberg 2012-05-03 18:42:32 +10:00
  • 733b97f4b8 Add PREFETCH10/16 implementations Ronnie Sahlberg 2012-05-03 06:21:49 +10:00
  • c02a952911 Fix some cut and paste typos Ronnie Sahlberg 2012-05-02 23:44:20 +10:00
  • 33a398f21c TESTS Add basic tests for write12/16 Ronnie Sahlberg 2012-05-02 23:15:41 +10:00
  • 02bbaa7007 TESTS: We have proper tests for READ12/16 now so we can remove the old rdprotect tests Ronnie Sahlberg 2012-05-02 21:48:01 +10:00
  • 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 Ronnie Sahlberg 2012-05-02 21:41:44 +10:00
  • 9e303bf635 TEST: Add a test reading beyond the end of the device for read12/16 Ronnie Sahlberg 2012-05-02 21:38:43 +10:00
  • a1c54d7265 TESTS: Add test to READ 12/16 when reading 0 blocks Ronnie Sahlberg 2012-05-02 21:23:15 +10:00
  • 34b290c287 TESTS add test for READ12/16 DPO/FUA/FUA_NV bits Ronnie Sahlberg 2012-05-02 20:28:05 +10:00
  • 2e3126b9ac TESTS: add tests for READ12/16 RDPROTECT for luns without protection information Ronnie Sahlberg 2012-05-02 20:14:51 +10:00
  • ce0c912b54 TEST: add simple test for READ12 Ronnie Sahlberg 2012-05-02 18:51:37 +10:00
  • 974738968d Implement READ/WRITE_12/16 and a simple test for read16 Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> Ronnie Sahlberg 2012-05-01 21:54:32 +10:00
  • 9e5535adfd Reconnect: If we are logged in and we experience a session failure, then try to re-connect and redrive all I/O Ronnie Sahlberg 2012-05-01 18:45:28 +10:00
  • 256415e284 Remove a backup file from an editor that is not really part of the package Ronnie Sahlberg 2012-05-01 06:54:01 +10:00
  • 9c6447b73a SENSE: add a sense key and an ascq Ronnie Sahlberg 2012-04-28 15:03:43 +10:00
  • 568e4ddfcc SBC: Add support for WRITESAME16 and add simple tests using it to unmap blocks from a thin provisioned lun Ronnie Sahlberg 2012-04-28 14:34:47 +10:00
  • d620cf4fd2 TEST: Add a test to verify that WRITESAME10 to unmap a fraction of a physical block will fail with an error Ronnie Sahlberg 2012-04-28 14:14:55 +10:00
  • cc0fa15e14 SBC: Add support for WRITESAME10 and a simple test for using writesame10 to unmap blocks from thin provisioned luns Ronnie Sahlberg 2012-04-28 13:55:37 +10:00
  • dc01df1e00 New version 1.3.0 Ronnie Sahlberg 2012-04-23 18:24:06 +10:00
  • 521f0a5a95 TEST: Add a test of various uses for UNMAP but no blocks to actually unmap. Ronnie Sahlberg 2012-04-22 08:46:14 +10:00
  • dd5f94b2ca Add support for UNMAP command and add a simple test for this opcode Ronnie Sahlberg 2012-04-22 08:09:15 +10:00
  • d71a9d4f95 Add support for BLOCK LIMITS VPD page Ronnie Sahlberg 2012-04-20 17:57:40 +10:00
  • 86bf89aabf Add support for READCAPACITY16 Ronnie Sahlberg 2012-04-20 17:56:39 +10:00
  • 422bc32ce8 Add support for INQUIRY LOGICAL_BLOCK_PROVISIONING page Ronnie Sahlberg 2012-04-19 20:09:14 +10:00
  • 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 Ronnie Sahlberg 2012-03-10 12:12:47 +11:00
  • 3f44347dae fix compiler warning Ronnie Sahlberg 2012-03-10 12:09:21 +11:00
  • a5d81fc16a fix some compiler warnings Ronnie Sahlberg 2012-03-10 12:08:05 +11:00
  • ed1d957ec9 fix a compiler warning Ronnie Sahlberg 2012-03-10 12:02:01 +11:00
  • 846ace255a Autoconf: Remove AS_SET_STATUS to be compatible with autoconf < 2.65 Ronnie Sahlberg 2012-03-10 10:55:48 +11:00
  • 263f1b86d8 Makefile.am add COPYING and the two licence files Ronnie Sahlberg 2012-03-10 10:40:31 +11:00
  • adf54603fc MAKERPMS: include the proper LICENCE-GPL and/or LICENCE-LGPL in the packages Ronnie Sahlberg 2012-03-10 10:36:57 +11:00
  • b3e4ff657f Merge branch 'master' of github.com:sahlberg/libiscsi Ronnie Sahlberg 2012-03-07 14:46:20 +11:00
  • c90f674a4d New version 1.2.0 Ronnie Sahlberg 2012-03-07 14:32:51 +11:00
  • add1ce67e4 Revert "Rename libiscsi to libiscsiclient to avoid clash with obscure linux library" Ronnie Sahlberg 2012-03-07 14:30:37 +11:00
  • afc68462f7 Update README to point to where release tarballs are and the mailinglist Ronnie Sahlberg 2012-03-05 18:14:53 +11:00
  • 9f8ad49133 We don't need COPYING.LESSES since we now provide explicite copies of both GPLv2 and LGPLv2.1 licence texts Ronnie Sahlberg 2012-03-05 13:51:10 +11:00
  • c2da7c9680 Update the licence texts Ronnie Sahlberg 2012-03-05 13:50:10 +11:00
  • 367f490edf Clarify the licencing terms in COPYING and also add explicit copies for GPL2/LGPL2.1 licence text Ronnie Sahlberg 2012-03-04 16:50:10 +11:00
  • c4386dfb87 Rename libiscsi to libiscsiclient to avoid clash with obscure linux library Ronnie Sahlberg 2012-03-03 17:01:37 +11:00
  • 2b521b4d24 TEST-TOOL: add test for read16/rdprotect Ronnie Sahlberg 2012-02-05 07:56:35 +11:00
  • b4573178ca TEST-TOOL: Add test for read12/rdprotect Ronnie Sahlberg 2012-02-05 07:52:30 +11:00
  • 0a0dfc4d65 TEST-TOOL: only do the read10 rdprotect test for SBC devices Ronnie Sahlberg 2012-02-05 07:39:10 +11:00
  • 32ba166040 TEST-TOOL: READ10 with invalid rdprotect should fail with invalid_field_in_cdb Ronnie Sahlberg 2012-02-05 07:35:33 +11:00
  • 5c273ca58c Add VERIFY10 test for BYTCHK==0 Ronnie Sahlberg 2012-01-27 16:35:23 +11:00
  • 62684d641a Add a test to check that if we deliberately send wrong data to the target it will reposnd with sense MISMATCH Ronnie Sahlberg 2012-01-26 16:18:05 +11:00
  • cff996a96d VERIFY10: Add support for VERIFY10. Also add a simple test for verify10 Ronnie Sahlberg 2012-01-26 15:47:14 +11:00
  • b9bae6f4a7 Update libiscsi patch for sg3-utils to 1.32 Ronnie Sahlberg 2012-01-17 20:33:34 +11:00
  • 6ecf536e86 Rename a varialbe to get rid of compiler warning Ronnie Sahlberg 2011-12-31 10:31:23 +11:00
  • 114c81390f Remove unused variable Ronnie Sahlberg 2011-12-31 10:29:41 +11:00
  • d486d466c8 Cast an expression to get rid of a compiler warning Ronnie Sahlberg 2011-12-31 10:28:34 +11:00
  • f4223d96c7 Remove unused variable Ronnie Sahlberg 2011-12-31 10:26:43 +11:00
  • 626734e52f Remove an unused variable Ronnie Sahlberg 2011-12-31 10:25:52 +11:00
  • 8e7e29a52b Remove an unused variable Ronnie Sahlberg 2011-12-31 10:24:37 +11:00
  • 72358be5a3 New version 1.1.0 Ronnie Sahlberg 2011-12-25 07:09:02 +11:00
  • 7b9bdaafb1 TMGMT: dont hardcode the lun we send to to 2, use the lun that is passed in as argument Ronnie Sahlberg 2011-12-19 15:43:27 +11:00
  • fa4d3aa7eb README: We dont carry a patch for QEMU any more. Ronnie Sahlberg 2011-10-29 11:36:38 +11:00
  • ee59afd87c Remove patch for QEMU Ronnie Sahlberg 2011-10-29 08:13:04 +11:00
  • edf7f8eebe Merge pull request #5 from bonzini/libtool-and-rpm Ronnie Sahlberg 2011-10-28 13:54:15 -07:00
  • ebaecfa928 fix rpmlint problems Paolo Bonzini 2011-10-28 15:33:35 +02:00
  • b4bddce2c6 compile the library if popt is not available Paolo Bonzini 2011-10-28 16:54:44 +02:00
  • a235a20fda remove LOGDIR Paolo Bonzini 2011-10-28 16:57:29 +02:00
  • 17319072b1 use automake and libtool Paolo Bonzini 2011-10-28 14:29:43 +02:00
  • d56fa027ff add .gitignore Paolo Bonzini 2011-10-28 16:38:18 +02:00
  • d1f2f854da ld_iscsi: use constructor attribute Paolo Bonzini 2011-10-28 15:54:03 +02:00
  • ae5caa645f add LGPL file Paolo Bonzini 2011-10-28 15:33:31 +02:00
  • 9bfc3f095d Logout processing is a bit broken since it does not update the cmdsn properly Ronnie Sahlberg 2011-10-16 13:58:07 +11:00
  • 2f23773390 add sync write10 Ronnie Sahlberg 2011-09-29 22:01:53 +10:00
  • ad7651006d Merge pull request #4 from bonzini/master Ronnie Sahlberg 2011-09-21 03:09:54 -07:00
  • 217bf6f53e fix warning from -Wswitch Paolo Bonzini 2011-09-21 12:01:39 +02:00
  • a1975e90f6 fix warning from -Wuninitialized Paolo Bonzini 2011-09-21 11:59:54 +02:00
  • c940381b59 fix warning from -Wsign-compare Paolo Bonzini 2011-09-21 11:51:36 +02:00
  • b4a48511ff fix warning from -Wenum-compare Paolo Bonzini 2011-09-21 11:49:58 +02:00
  • 3c11c3598b Add a function to cancel a scsi task from libiscsi. Ronnie Sahlberg 2011-09-19 21:21:40 +10:00
  • a974e8efe1 When a scsi task / pdu has been cancelled, pass back SCSI_STATUS_CANCELLED to the task callback and not default to SCSI_STATUS_ERROR Ronnie Sahlberg 2011-09-19 21:12:32 +10:00
  • 0a9049ad65 remove debug messages Ronnie Sahlberg 2011-09-10 14:02:22 +10:00
  • 49017fda58 OpenSolaris: Add support for opensolaris Ronnie Sahlberg 2011-09-01 18:04:29 +10:00
  • 57b9edabbf add windows as tested platform Ronnie Sahlberg 2011-08-31 13:13:20 +10:00
  • c3d3123981 Windows: Add support to build as a DLL under windows Ronnie Sahlberg 2011-08-31 13:11:43 +10:00
  • 9f724b34f2 add cygwin and freebsd as tested platforms Ronnie Sahlberg 2011-07-18 10:38:26 +10:00
  • cbc5bd5f96 only build the LD_PRELOAD hack on linux Ronnie Sahlberg 2011-07-17 09:56:52 +10:00
  • 768e6b5418 Merge pull request #3 from djs55/rpm-build-fix Ronnie Sahlberg 2011-07-14 01:32:42 -07:00
  • 96a0dff1be Fix the RPM build on CentOS 5.5 David Scott 2011-07-12 14:31:18 +01:00
  • caf8ade440 Update the QEMU patch to work against current qemy master branch Ronnie Sahlberg 2011-06-12 12:59:57 +10:00
  • 0be42c8833 If an application specifies zero-copy read-buffers to read the data into for a read10 call, the application might have specified too few buffers for the full I/O. For example if the application tries to read just 512 bytes off a MMC device. Ronnie Sahlberg 2011-06-12 10:44:31 +10:00
  • de97dbdde8 start implementing mode page unmarshalling Ronnie Sahlberg 2011-04-23 14:02:59 +10:00
  • 8bc4150e31 Fix typo in a printed string Ronnie Sahlberg 2011-04-22 12:23:53 +10:00
  • 9aaf1e5de4 Add tests for invalid READ6 commands Ronnie Sahlberg 2011-04-22 12:03:51 +10:00
  • 2838e6f6ac Add tests for reading beyong eol for READ6 Ronnie Sahlberg 2011-04-22 11:41:33 +10:00
  • 4355462cf9 Qemu patch. Update the qemu patch to provide task management abort task when the qemu cancels an i/o. Ronnie Sahlberg 2011-04-22 07:53:01 +10:00
  • 7a4b1d2640 Fix documentation of how to use 'zero-copy' reads. The function to specify the read buffers is called scsi_task_add_data_in_buffer, not scsi_task_add_data_buffer Ronnie Sahlberg 2011-04-22 07:51:47 +10:00
  • 3a39201543 Add 'zero-copy' in libiscsi for reads. It is not real zero-copy since the data is still copied in the kernel, but it avoids copying the data inside libiscsi as well as in the callback. Ronnie Sahlberg 2011-04-20 05:42:36 +10:00
  • acc2871ab0 Fix the 4 residual tests for read10 Ronnie Sahlberg 2011-04-18 17:38:50 +10:00
  • 7fe457cea8 We can get over/underflow residuals in a DATA-IN segment if/when the S bit is set too. Ronnie Sahlberg 2011-04-18 17:31:47 +10:00
  • ea6079d953 run all tests in t0105 even if one of the tests fail Ronnie Sahlberg 2011-04-18 12:49:14 +10:00
  • 8007398b9b Add a few more tests of READ10 with a mismatch between the amount of data specified in the CDB XFERLENGTH and the iSCSI EDTL Ronnie Sahlberg 2011-04-17 06:50:20 +10:00
  • 26ad3da518 Add a description if iscsi-test to the README file Ronnie Sahlberg 2011-04-16 16:54:19 +10:00