12 Commits

Author SHA256 Message Date
b5bfe7879a Accepting request 1268088 from Base:System
- Update to version 1.20.0+git.20250327:
  * fix: use correct maximum length for TargetName and InitiatorName
  * refactor(TODO): cleanup todos that have been implemented for ages
  * feat(socket): log resolved ip addresses if portal is a hostname
  * fix(socket): restore logging of local ip and port
  * feat(logging): include LUN into log messages

OBS-URL: https://build.opensuse.org/request/show/1268088
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libiscsi?expand=0&rev=28
2025-04-10 19:57:32 +00:00
39e5e0092a - Update to version 1.20.0+git.20250327:
* fix: use correct maximum length for TargetName and InitiatorName
  * refactor(TODO): cleanup todos that have been implemented for ages
  * feat(socket): log resolved ip addresses if portal is a hostname
  * fix(socket): restore logging of local ip and port
  * feat(logging): include LUN into log messages

OBS-URL: https://build.opensuse.org/package/show/Base:System/libiscsi?expand=0&rev=59
2025-04-09 09:40:14 +00:00
5381bdf0c2 Accepting request 1247082 from Base:System
- Update to version 1.20.0+git.20250104:
  * Add CHAP SHA3-256 support
  * Add support for CHAP with SHA-256
  * Add support for CHAP using SHA1
  * Don't use inet_ntoa, it is deprecated

OBS-URL: https://build.opensuse.org/request/show/1247082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libiscsi?expand=0&rev=27
2025-02-20 15:27:26 +00:00
dbfce8828e - Update to version 1.20.0+git.20250104:
* Add CHAP SHA3-256 support
  * Add support for CHAP with SHA-256
  * Add support for CHAP using SHA1
  * Don't use inet_ntoa, it is deprecated

OBS-URL: https://build.opensuse.org/package/show/Base:System/libiscsi?expand=0&rev=57
2025-02-19 13:09:46 +00:00
8941254ed0 Accepting request 1229784 from Base:System
- Update to version 1.20.0+git.20241207:
  * fix: scan PDUs before exiting event_loop due to connect timedout
  * lib: finish event_loop on invalid fd
  * lib: reserve the fd on reconnect
  * Fix free pdu mismatch with alloc
  * Fix pdu indata of iser alloc and free mismatch
  * feat: add iscsi_reset_next_reconnect interface
  * For failing writes, show what is in the sector instead
  * libcunit1-dev is required for iscsi-test-cu to be build
  * install binaries and manpage to rpm
  * Add utils.h to dist_noinst_HEADERS

OBS-URL: https://build.opensuse.org/request/show/1229784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libiscsi?expand=0&rev=26
2024-12-11 20:00:57 +00:00
461e8d3877 - Update to version 1.20.0+git.20241207:
* fix: scan PDUs before exiting event_loop due to connect timedout
  * lib: finish event_loop on invalid fd
  * lib: reserve the fd on reconnect
  * Fix free pdu mismatch with alloc
  * Fix pdu indata of iser alloc and free mismatch
  * feat: add iscsi_reset_next_reconnect interface
  * For failing writes, show what is in the sector instead
  * libcunit1-dev is required for iscsi-test-cu to be build
  * install binaries and manpage to rpm
  * Add utils.h to dist_noinst_HEADERS

OBS-URL: https://build.opensuse.org/package/show/Base:System/libiscsi?expand=0&rev=55
2024-12-10 13:28:57 +00:00
be63bba1a1 Accepting request 1179242 from Base:System
- Update to version 1.20.0+git.20240530:
  * fix use after free in recent commit
  * Add support for Data Digest
  * login: add support for gnutls
  * login: do not try to "emulate" the libgcrypt API
  * configure: add --with-libgcrypt option
  * A possible 'fix' for https://github.com/sahlberg/libiscsi/issues/415 This patch adds a timestamp before each logged line. That could help correlating a logging to a network-trace. Because of offsets in time between the tracer and the test and the DUT, this does not always help.
  * Manually set task to null after free to avoid double free issue
  * lun_reset cancelling lun tasks only

OBS-URL: https://build.opensuse.org/request/show/1179242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libiscsi?expand=0&rev=25
2024-06-09 18:19:00 +00:00
c8ebd1a04e - Update to version 1.20.0+git.20240530:
* fix use after free in recent commit
  * Add support for Data Digest
  * login: add support for gnutls
  * login: do not try to "emulate" the libgcrypt API
  * configure: add --with-libgcrypt option
  * A possible 'fix' for https://github.com/sahlberg/libiscsi/issues/415 This patch adds a timestamp before each logged line. That could help correlating a logging to a network-trace. Because of offsets in time between the tracer and the test and the DUT, this does not always help.
  * Manually set task to null after free to avoid double free issue
  * lun_reset cancelling lun tasks only

OBS-URL: https://build.opensuse.org/package/show/Base:System/libiscsi?expand=0&rev=53
2024-06-07 13:51:12 +00:00
9edd9c1956 Accepting request 1153223 from Base:System
- Update to version 1.20.0+git.20240206:
  * spelling fixes: eventhough, shoudl, asyncronous, maxium, implicity
  * COPYING: stop mentioning ld_scsi
  * New version 1.20.0
  * Previously, 'task->status' was printed as decimal. In iscsi.h, the values that are put into it are defined as hexadecimal. This is a bit confusing (grepping through the code for 251658241 did not result in anything while the hex variant f000001 resulted in SCSI_STATUS_ERROR).
  * Fix for https://github.com/sahlberg/libiscsi/issues/409 'ms->pages' was not checked for being NULL. This can happen when a target does not return any pages.
  * Improve iSCSI PDU header dump
  * Abstract value_string as common utility
  * Drain DATAOUT PDU on timeout

OBS-URL: https://build.opensuse.org/request/show/1153223
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libiscsi?expand=0&rev=24
2024-03-01 22:34:47 +00:00
9f152f1fab - Update to version 1.20.0+git.20240206:
* spelling fixes: eventhough, shoudl, asyncronous, maxium, implicity
  * COPYING: stop mentioning ld_scsi
  * New version 1.20.0
  * Previously, 'task->status' was printed as decimal. In iscsi.h, the values that are put into it are defined as hexadecimal. This is a bit confusing (grepping through the code for 251658241 did not result in anything while the hex variant f000001 resulted in SCSI_STATUS_ERROR).
  * Fix for https://github.com/sahlberg/libiscsi/issues/409 'ms->pages' was not checked for being NULL. This can happen when a target does not return any pages.
  * Improve iSCSI PDU header dump
  * Abstract value_string as common utility
  * Drain DATAOUT PDU on timeout

OBS-URL: https://build.opensuse.org/package/show/Base:System/libiscsi?expand=0&rev=51
2024-02-29 13:07:57 +00:00
d4f5d8e3ab Accepting request 1125840 from Base:System
- Update to version 1.19.0+git.20231114:
  * Log necessary message on internal reconnect
  * Dump opcode string in iscsi_dump_pdu_header()
  * Introduce helper function scsi_opcode_str
  * Declare value-string maps as static
  * Distinguish command timeout
  * doc: Add iscsi-md5sum
  * fixup! checking if task is in outqueue
  * checking if task is in outqueue
  * Add add  a timeout to the event_loop in sync.c
  * iscsi-discard: adapt block limits
  * gitignore: Add utils/iscsi-md5sum
  * iscsi-md5sum: Add new tool
  * gitignore: add utils/iscsi-discard
  * iscsi-discard: Add new tool
  * utils: use strtol instead of atoi
  * Add iscsi_set_fd_dup_cb
  * Add /utils/iscsi-pr into .gitignore
  * iscsi-perf: Add -h/--help

OBS-URL: https://build.opensuse.org/request/show/1125840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libiscsi?expand=0&rev=23
2023-11-15 20:06:39 +00:00
f04535b81c - Update to version 1.19.0+git.20231114:
* Log necessary message on internal reconnect
  * Dump opcode string in iscsi_dump_pdu_header()
  * Introduce helper function scsi_opcode_str
  * Declare value-string maps as static
  * Distinguish command timeout
  * doc: Add iscsi-md5sum
  * fixup! checking if task is in outqueue
  * checking if task is in outqueue
  * Add add  a timeout to the event_loop in sync.c
  * iscsi-discard: adapt block limits
  * gitignore: Add utils/iscsi-md5sum
  * iscsi-md5sum: Add new tool
  * gitignore: add utils/iscsi-discard
  * iscsi-discard: Add new tool
  * utils: use strtol instead of atoi
  * Add iscsi_set_fd_dup_cb
  * Add /utils/iscsi-pr into .gitignore
  * iscsi-perf: Add -h/--help

OBS-URL: https://build.opensuse.org/package/show/Base:System/libiscsi?expand=0&rev=49
2023-11-14 10:21:12 +00:00
8 changed files with 101 additions and 21 deletions

View File

@@ -1,12 +1,12 @@
<services>
<service mode="disabled" name="obs_scm">
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/sahlberg/libiscsi.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">libiscsi</param>
<param name="versionformat">@PARENT_TAG@+git.%cd</param>
<param name="versionformat">1.20.0+git.%cd</param>
</service>
<service mode="disabled" name="set_version"/>
<service mode="manual" name="set_version"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>

View File

@@ -3,4 +3,4 @@
<param name="url">git@github.com:sahlberg/libiscsi.git</param>
<param name="changesrevision">e6bcdf5fdbf39729399c4f0914661ca1055107a1</param></service><service name="tar_scm">
<param name="url">https://github.com/sahlberg/libiscsi.git</param>
<param name="changesrevision">22f7b26567760921fa1aad77cca642153123ea8c</param></service></servicedata>
<param name="changesrevision">eb0853e36e89add782b20f23ab4a1cd0fe83fb89</param></service></servicedata>

View File

@@ -1 +1 @@
libiscsi9
libiscsi10

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64b69321ae7d868388d8a5f0b99d4fcc5930f127df9d4a0ae1be9fe90d2a515c
size 2171404

View File

@@ -1,3 +1,86 @@
-------------------------------------------------------------------
Wed Apr 9 09:40:03 UTC 2025 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.20.0+git.20250327:
* fix: use correct maximum length for TargetName and InitiatorName
* refactor(TODO): cleanup todos that have been implemented for ages
* feat(socket): log resolved ip addresses if portal is a hostname
* fix(socket): restore logging of local ip and port
* feat(logging): include LUN into log messages
-------------------------------------------------------------------
Wed Feb 19 13:08:14 UTC 2025 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.20.0+git.20250104:
* Add CHAP SHA3-256 support
* Add support for CHAP with SHA-256
* Add support for CHAP using SHA1
* Don't use inet_ntoa, it is deprecated
-------------------------------------------------------------------
Tue Dec 10 13:25:26 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.20.0+git.20241207:
* fix: scan PDUs before exiting event_loop due to connect timedout
* lib: finish event_loop on invalid fd
* lib: reserve the fd on reconnect
* Fix free pdu mismatch with alloc
* Fix pdu indata of iser alloc and free mismatch
* feat: add iscsi_reset_next_reconnect interface
* For failing writes, show what is in the sector instead
* libcunit1-dev is required for iscsi-test-cu to be build
* install binaries and manpage to rpm
* Add utils.h to dist_noinst_HEADERS
-------------------------------------------------------------------
Fri Jun 7 13:49:23 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.20.0+git.20240530:
* fix use after free in recent commit
* Add support for Data Digest
* login: add support for gnutls
* login: do not try to "emulate" the libgcrypt API
* configure: add --with-libgcrypt option
* A possible 'fix' for https://github.com/sahlberg/libiscsi/issues/415 This patch adds a timestamp before each logged line. That could help correlating a logging to a network-trace. Because of offsets in time between the tracer and the test and the DUT, this does not always help.
* Manually set task to null after free to avoid double free issue
* lun_reset cancelling lun tasks only
-------------------------------------------------------------------
Thu Feb 29 13:02:24 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.20.0+git.20240206:
* spelling fixes: eventhough, shoudl, asyncronous, maxium, implicity
* COPYING: stop mentioning ld_scsi
* New version 1.20.0
* Previously, 'task->status' was printed as decimal. In iscsi.h, the values that are put into it are defined as hexadecimal. This is a bit confusing (grepping through the code for 251658241 did not result in anything while the hex variant f000001 resulted in SCSI_STATUS_ERROR).
* Fix for https://github.com/sahlberg/libiscsi/issues/409 'ms->pages' was not checked for being NULL. This can happen when a target does not return any pages.
* Improve iSCSI PDU header dump
* Abstract value_string as common utility
* Drain DATAOUT PDU on timeout
-------------------------------------------------------------------
Tue Nov 14 10:16:34 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20231114:
* Log necessary message on internal reconnect
* Dump opcode string in iscsi_dump_pdu_header()
* Introduce helper function scsi_opcode_str
* Declare value-string maps as static
* Distinguish command timeout
* doc: Add iscsi-md5sum
* fixup! checking if task is in outqueue
* checking if task is in outqueue
* Add add a timeout to the event_loop in sync.c
* iscsi-discard: adapt block limits
* gitignore: Add utils/iscsi-md5sum
* iscsi-md5sum: Add new tool
* gitignore: add utils/iscsi-discard
* iscsi-discard: Add new tool
* utils: use strtol instead of atoi
* Add iscsi_set_fd_dup_cb
* Add /utils/iscsi-pr into .gitignore
* iscsi-perf: Add -h/--help
-------------------------------------------------------------------
Wed Mar 8 11:49:02 UTC 2023 - Martin Pluskal <mpluskal@suse.com>

View File

@@ -1,4 +1,4 @@
name: libiscsi
version: 1.19.0+git.20230208
mtime: 1675875675
commit: 22f7b26567760921fa1aad77cca642153123ea8c
version: 1.20.0+git.20250327
mtime: 1743032281
commit: ecc8a10212c4d848e5c9bd4dd83e3068e334b2ae

View File

@@ -1,7 +1,7 @@
#
# spec file for package libiscsi
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,13 +16,12 @@
#
%define sover 9
%define sover 10
Name: libiscsi
Version: 1.19.0+git.20230208
Version: 1.20.0+git.20250327
Release: 0
Summary: iSCSI client library and utilities
License: GPL-2.0-only AND LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: https://github.com/sahlberg/libiscsi
Source0: %{name}-%{version}.tar.gz
Source99: baselibs.conf
@@ -42,7 +41,6 @@ that can be used to access resource of an iSCSI target.
%package -n %{name}%{sover}
Summary: iSCSI client library and utilities
Group: System/Libraries
%description -n %{name}%{sover}
libiscsi is a clientside library to implement the iSCSI protocol
@@ -54,7 +52,6 @@ for simpler applications.
%package utils
Summary: Some utilities for %{name}
Group: Productivity/Networking/Other
%description utils
libiscsi is a clientside library to implement the iSCSI protocol that can
@@ -64,7 +61,6 @@ This package contains utilities based on %{name}.
%package devel
Summary: Development files for %{name}
Group: Development/Languages/C and C++
Requires: %{name}%{sover} = %{version}
%description devel
@@ -72,7 +68,6 @@ Development files for %{name}
%package test
Summary: Test utilities for iSCSI
Group: System/Base
%description test
A comprehensive iSCSI transport and SCSI block device test suite based on
@@ -93,8 +88,7 @@ autoreconf -fiv
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{name}%{sover}
%files -n %{name}%{sover}
%{_libdir}/libiscsi.so.%{sover}*
@@ -102,6 +96,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files utils
%license COPYING
%doc LICENCE-* README.md
%{_bindir}/iscsi-discard
%{_bindir}/iscsi-md5sum
%{_bindir}/iscsi-inq
%{_bindir}/iscsi-ls
%{_bindir}/iscsi-swp
@@ -111,6 +107,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/man1/iscsi-inq.1%{?ext_man}
%{_mandir}/man1/iscsi-ls.1%{?ext_man}
%{_mandir}/man1/iscsi-swp.1%{?ext_man}
%{_mandir}/man1/iscsi-md5sum.1%{?ext_man}
%files devel
%{_libdir}/pkgconfig/libiscsi.pc