48 Commits

Author SHA1 Message Date
sahlberg
46631b9083 New version 1.20.3
When queueing the first PDU to an idle socket, immediately try to write
it to the socket instead of waiting for the event-loop to
timeout/notice there is work to do.

Various other small bugfixes.

Signed-off-by: sahlberg <sahlberg@r10-0-1.rocky10.sahlberg>
2025-07-15 19:27:12 +10:00
Ronnie Sahlberg
bd439878c0 New version 1.20.2
- Fix for Apple as their pthreads do not provide spinlock support.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-05-05 16:20:09 +10:00
Ronnie Sahlberg
8cd2381476 New version 1.20.1
Add sha1/sha256/sha3 authentication
Add multithreading support

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2025-05-03 10:02:42 +10:00
Han Han
7d4becaeb4 install binaries and manpage to rpm
Add these files to libiscsi-utils package:

- /usr/bin/iscsi-discard
- /usr/bin/iscsi-md5sum
- /usr/bin/iscsi-pr
- /usr/share/man/man1/iscsi-md5sum.1.gz

Signed-off-by: Han Han <hhan@redhat.com>
2024-09-14 15:27:54 +08:00
Michael Tokarev
6e0206c135 spelling fixes: eventhough, shoudl, asyncronous, maxium, implicity
These changes are carried in debian for a long time, some since 2016.
The last one (implicity) is new in 1.20.0.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-02-05 10:22:23 -08:00
Ronnie Sahlberg
d960e6253c New version 1.20.0
Mostly various updates to the test tool

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2024-02-05 16:59:18 +10:00
Tianren Zhang
2b8905b4f9 add README.md to dist tarball
README is required in rpm spec, but not included into the dist
tarball
2021-09-12 03:44:23 -04:00
Thanos Makatos
9705017e37 exclude ld_iscsi.so from RPM
This is an omission from commit
e6bcdf5fdb.

Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-06-02 02:33:27 -07:00
Ronnie Sahlberg
eea5d3ba8e new version 1.19.0
Minor updates to the library

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2019-07-14 08:04:44 +10:00
Ronnie Sahlberg
b8eb923009 New version 1.18.0
- Various updates to the test utility
- Add transport abstraction
- Add support for iSER
- Add iscsi_discovery_sync()

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2016-10-09 11:54:10 -07:00
Ronnie Sahlberg
8da7b8df3e New version 1.17.0
This release contains a bugfix for a rare condition where
if a DATA-OUT PDU has a callback registered, it can cause a crash
on reconnect/timeout.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2016-05-08 12:37:59 -07:00
Ronnie Sahlberg
2b9cd64e7c New version 1.16.0
- Various test updates.
 - Add tests for ExtendedCopy and ReceiveCopyResults
 - Add support for WRITE_ATOMIC_16 and tests
 - Multipath tests added
 - Persistent Reservation test updates.
 - Make sure to process target NOPs in the tests
 - Fix broken CHAP has handling.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2016-05-01 15:55:58 -07:00
Ronnie Sahlberg
96c00b2178 New version 1.15.0
- Replace some u_int32_t with uint32_t
- Portability fixes to iscsi-perf
- Improved documentation for the tests in README
- Add/fix support for setting task/pdu timeouts and add unit tests for it.
- Add multipath helpers for the test suite and add a simple multipath test
- Skip sending TUR during reconnect, since it can cause the connection to
-   hang.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-06-21 08:50:50 -07:00
Ronnie Sahlberg
de0795928a makerpms.sh : we dont need to configure from this script. rpmbuild will do it
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-05-10 10:04:20 -07:00
Ronnie Sahlberg
dfeefd6539 New version 1.14.0
- Add support to use /dev/* nodes instead of just iscsi devices.
 - Create a dedicated test for the FUA/DPO flags
 - Allow reusing the context after disconnect
 - Fix non-randomness in rand_key()
 - Add iscsi-perf tool
 - Fix length bug when sending unsolicited data in iscsi_command
 - Reqrite the reconnect logic to begome fully async
 - Fix wrong checks for username in CHAP
 - Support Bidirectional CHAP
 - Improve handling of IMMEDIATE bit
 - Cmdsn, statsn fixes+
 - iscsi_which_events can return 0, which means that there are no events right
   now but try again in a second or so.
 - Ignore any ASYNC EVENTS we receive since we can not yet pass them back to
   the application.
 - Add initial make test support
 - Various minor fixes to libiscsi and the test suite

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-05-10 09:14:11 -07:00
Ronnie Sahlberg
6422fad7de RPM: add iscsi-perf to the package
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-02-11 06:11:44 -08:00
Ronnie Sahlberg
646c8b963d New version 1.13.0
- Fix UNMAP tests
 - Build updates
 - Check residuals also when status != GOOD
 - Add WSNZ bit to the tests
 - Various test updates
 - Fix bug in scsi_create_task so it sets cdb_len correctly
 - Add a getter function for scsi task status and sense
 - Fixes and workarounds for Dell Equallogic issues
 - Be more flexible when allowing for unit attentions during connect time

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-12-21 14:58:46 -08:00
Ronnie Sahlberg
9d3d40ae14 Typo
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-07-21 11:26:45 -07:00
Ronnie Sahlberg
8c27635c5d New version 1.12.0
- Fix bug in statsn wrapping
- Add support for async events

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-07-21 07:36:03 -07:00
Ronnie Sahlberg
fe669580ee New version 1.11.0
This version contains changes for:
 - Fix memory leaks in persistent reserve out.
 - Fix various leaks in the testsuite.
 - Add additional READ16 tests
 - Better logging when reconnect fails.
 - Discovery and Login fixes.
 - Various fixes found by coverity.
 - WRITESAME test updates.
 - Add XML oputput support for the testsuite.
and various other things.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2014-04-19 12:06:45 -07:00
Ronnie Sahlberg
6f7fe8f36a DOCS: Add an initial manpage for iscsi-test-cu 2014-03-24 17:04:29 -07:00
Ronnie Sahlberg
0236395709 Run configure --prefix=/usr during makerpms.sh 2014-02-11 19:40:38 -08:00
Ronnie Sahlberg
20b25b9088 Make sure the rpm build directories exist before we try copying into them. 2014-02-10 19:53:36 -08:00
Ronnie Sahlberg
3e00541fae Create RPM target for the testsuite 2014-02-09 18:15:12 -08:00
Ronnie Sahlberg
f7a21d1dcd Add iscsi-swp +manpage to the rpm build 2014-02-02 08:42:26 -08:00
Ronnie Sahlberg
f6a52d11c0 New version 1.10
- Add manpages for iscsi-ls/iscsi-inq and iscsi-swp
 - Many new tests and updates to the testsuite.
 - Fix memory leak in iscsi_reconnect
 - Fixes to the persistent reservation tests
 - AROS support
 - Fix/restore windows support
 - Switch to libgcrypt for the MD5 support.
 - Fix buffer overflow in the persistent reserver unmarshalling code.
 - And many more minor fixes.
2013-10-20 16:54:35 -07:00
Ronnie Sahlberg
b3ca40efbe Get rid of the popt dependency 2013-04-21 10:25:30 -07:00
Ronnie Sahlberg
fdd15d7b08 SPEC: add the manpages and read16 command to the specfile 2013-02-24 12:44:22 -08:00
Ronnie Sahlberg
2e126318ac New version 1.9.0
The main part of this release is the introduction of a new
CUnit based test tool for iscsi and scsi : iscsi-test-cu
This test tool will replace iscsi-test which will remain but will not
be expanded with any new tests.

Other changes include:
 - Add new CUnit based test tool: iscsi-test-cu to replace iscsi-test
 - Add tests for persistent reservation
 - Autotools updates
 - Add pkgconfig
2013-02-24 09:09:02 -08:00
Paolo Bonzini
a5fd68472e distribute pkgconfig file
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-02-22 18:01:22 +01:00
Ronnie Sahlberg
1dc4023d70 New version 1.8.0
- Add new debugging/logging subsystem.
 - Collapse related structures into one and reduce amount of calls to malloc()
 - Add more functions to ld-iscsi so that we can write to luns too.
 - Start adding unmarshalling of CDBs
 - Add support for using iovectors for both reading and writing.
 - Fix a deadlock between CMDSN and DATA-OUT PDUs.
 - Redo how we handle FirstBurstLength/MaxRecvDataSegmentLength/ImmediateData/InitialR2T.
 - Add a new nice API for handling sending NOPs from the application.
 - Add tests for PersistentReservations.
2013-01-05 09:30:33 -08:00
Ronnie Sahlberg
c10ae3ae3e New version 1.7.0
- Lots of additional tests.
- ld_iscsi updates and bugfixes.
- Fix a protocol bug where we might send > FirstBurstLength amount of data
  as unsolicited data.
- Tcp keepalive improvements.
- Debugging framework.
- Add support for redirection.
- Fix reconnect bug where we would incorrectly re-queue DATA-OUT PDUs after
  reconnect.
- Add a new iscsi-readcapacity16 command.
- Squelch a huge number of compiler warnings.
2012-11-06 18:40:30 -08:00
Ronnie Sahlberg
61488fd381 New version 1.0.6 2012-09-03 10:17:43 -07:00
Ronnie Sahlberg
9e0e910810 New version 1.5.0 2012-07-09 15:19:25 +10:00
Ronnie Sahlberg
e63b83e3d8 New version 1.4 2012-05-03 18:48:52 +10:00
Ronnie Sahlberg
dc01df1e00 New version 1.3.0 2012-04-23 18:24:06 +10: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
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
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
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
Paolo Bonzini
ebaecfa928 fix rpmlint problems
This fixes all rpmlint problems except for missing manpages and the
invalid URL for the tarball.
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
David Scott
96a0dff1be Fix the RPM build on CentOS 5.5
This is needed because prefix is being set directly to $(DESTDIR) in Makefile.in
2011-07-12 14:47:33 +01:00
Ronnie Sahlberg
6cb843682f RPM
Install the libiscsi shared library as part of the normal RPM,
not as part of the special devel RPM
2010-12-21 20:09:46 +11:00
Ronnie Sahlberg
5e5a5a2c56 Add autogen/configure to the build instructions.
Update the RPM sepcfile to run autogen/configure
2010-12-05 14:53:02 +11:00
Ronnie Sahlberg
30177426b4 Update the RPM specfile to point to the githup libiscsi URL 2010-12-05 08:30:59 +11:00
Ronnie Sahlberg
098bc5a9a7 Initial import of libiscsi 2010-12-05 08:24:57 +11:00