Sync from SUSE:ALP:Source:Standard:1.0 libiscsi revision 314c620f2539367b29a1e642d19b9811

This commit is contained in:
Adrian Schröter 2023-05-17 14:46:22 +02:00
commit 95499901fe
8 changed files with 429 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service mode="disabled" 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>
</service>
<service mode="disabled" name="set_version"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

6
_servicedata Normal file
View File

@ -0,0 +1,6 @@
<servicedata>
<service name="tar_scm">
<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>

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libiscsi9

BIN
libiscsi-1.19.0+git.20230208.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

253
libiscsi.changes Normal file
View File

@ -0,0 +1,253 @@
-------------------------------------------------------------------
Wed Mar 8 11:49:02 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20230208:
* iser: Remove unnecessary 'return;'
* pdu: Remove temporary variables from functions
* connect: Add check after malloc allocation
* aros_compat: Add check after malloc allocation
- Build AVX2 enabled hwcaps library for x86_64-v3
-------------------------------------------------------------------
Mon Nov 28 08:40:46 UTC 2022 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20221112:
* ci/build.sh: Enable parallel compilation
* ci: Fix the Appveyor Linux and Windows builds
* ci: Add ci/install.bat
* Add CodeQL workflow for GitHub code scanning
* test-tool: remove a redundant semicolon
* lib/scsi-lowlevel: Make the REPORT LUNS unmarshalling code more flexible
* Fix segmentation fault problem.
* Check return value of scsi_malloc in order to avoid dereferencing NULL return value.
* fix iscsi-ls parameter parse
* iscsi-swp: handle setting of debug_level correctly
* Update iscsi-dd.c
* iscsi-inq: handle setting of debug_level correctly
* Retain the immediate data param during login processing
-------------------------------------------------------------------
Wed Mar 16 13:26:08 UTC 2022 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20220303:
* iscsi-command: Fix leak in iscsi_send_data_out
* iscsi-pr: add persistent reservation tool
* add iscsi_force_reconnect()
* add libiscsi.syms to .gitignore
-------------------------------------------------------------------
Thu Dec 9 10:48:21 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20210930:
* iscsi-support: fix memory leak
* add README.md to dist tarball
* add libiscsi.syms.in to dist tarball
* test-tool, xcopy: Fix target descriptor handling
* iser: Fix a compiler warning triggered by the container_of() definition
* configure: Remove -Wno-strict-aliasing
* slist: Clean up the slist.h header file
* slist: Make this header file compatible with C++
* scsi-lowlevel.h: Include <assert.h>
* examples/iscsi-dd: use stderr for all error text
* examples/iscsi-dd: fix typos
* ci: Add a github build action
* test: fix ExtendedCopy.Large SKIPPED cases
* configure.ac: Quote argument to m4_esyscmd() properly
* Fixed several code style problems
* test-tool: check that ReceiveCopyResults is implemented
* lib: init version for 8Fh VPD page
* ci: Enable MinGW
* MinGW: Second step of porting to MinGW
* configure.ac: Use AC_CONFIG_HEADERS() instead of AC_CONFIG_HEADER()
* lib/libiscsi.syms: Sort alphabetically
* ci: First phase of adding MingW support
* configure.ac: Run autoupdate
* README.md: Update
* README: Rename into README.md
* ci: Switch from Travis to AppVeyor
* test-tool: Do not use empty initializers
-------------------------------------------------------------------
Thu Jun 24 08:10:40 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20210523:
* Port to MinGW
* win32/win32_compat.c: Reformat this file
* Enable -Wno-unused-parameter
* Use __attribute__((format(printf, ...))) directly
* build: Add -no-undefined where missing
* build: Correct usage of LIBADD and LDADD
* build: Remove bogus LDADD variables
* Add header <strings.h> for strncasecmp
-------------------------------------------------------------------
Thu Apr 22 06:53:46 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20210208:
* test-tool: Change command_is_implemented from a global variable into an argument
* test-tool: Move a logging statement into write_residuals_test()
* test-tool: Add default clauses in recently modified switch statements
* test-tool, residuals: Rename struct residuals_test_data members
* test-tool: Add overwrite check for all test cases
* test-tool: Change write residuals tests overwrite check according to FCP-4
* test-tool: Refactoring residuals write tests
* test-tool: Allow CHECK CONDITION in response to overflow/underflow
* .travis.yml: Multiple changes
* test-tool: add simple REPORT LUNS test
* init: fix Wformat on 32-bit platforms
-------------------------------------------------------------------
Mon Dec 28 15:13:31 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20201217:
* Revert "specify number of blocks in write_same command"
* iser: fix segmentation fault when task management pdu is received
* iser: fix segmentation fault when async message pdu is received
-------------------------------------------------------------------
Thu Nov 5 10:50:08 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20201023:
* test-tool: add COMPARE AND WRITE MiscompareSense test
* lib: parse Information fixed sense field
* lib: parse Information sense descriptor type
* lib: check length for sense key specific sense data descriptors
* lib: drop generic sense data descriptor VALID check
* test-tool: add version descriptor checks for more SBC-3 versions
* test-tool: Fix CmdSN tests
* test-tool/test_async_lu_reset_simple: Move an assert statement
* Remove an unused function from the iSER code
* test-tool: add LogoutDuringIOAsync test case
* test-tool: rename async write dispatch/complete counters
* pdu: fix use after free during cancellation
-------------------------------------------------------------------
Thu Aug 13 11:36:17 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20200812:
* .travis.yml: Also build for the ppc64le architecture
* iscsi-ls: Fix iser url scheme parsing
* test-tool: Use block_size instead of hardcoded 512 bytes
* examples/iscsi-dd: use common init function for src and dst endpoints
* examples/iscsi-dd: use common iscsi_endpoint struct
* iscsi-perf: Add explicit casts to avoid two warnings
* socket: Make the pdu timeout handling aware of old iscsi context
* libiscsi: Make the cancellation aware of the pdus in old iscsi context
* pdu: Remove the checking for iscsi->is_loggedin in iscsi_cancel_pdus()
* libiscsi: Avoid discontinuities in cmdsn ordering in some cases
* test-tool: Use block_size instead of hardcoded 512 bytes
* exclude ld_iscsi.so from RPM
* include iser-private.h in make dist tarball
-------------------------------------------------------------------
Tue May 26 08:40:28 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20200521:
* test-tool, compare and write: Reduce maximum number of blocks from 256 to 255
* test_compareandwrite_invalid_dataout_size: Simplify this test
* test-tool: Use asprintf() in sg_send_scsi_cmd()
* test-tool: Fix a comment in sg_send_scsi_cmd()
* test-tool: Split send_scsi_command()
* socket: fix rewrite cmdsn of immediate pdus
* iser: eliminate unnecessary memory allocations
* iser: use `login_resp_buf` until login is finished
* init: free iscsi->opaque before check mallocs/frees counter
* reconnect: collect mallocs/frees of the previous reconnection
-------------------------------------------------------------------
Mon Apr 27 19:24:44 UTC 2020 - Martin Liška <mliska@suse.cz>
- Enable -fcommon in order to fix boo#1160276.
-------------------------------------------------------------------
Tue Feb 18 13:33:31 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19.0+git.20200212 (resolves boo#1160276):
* drop the LD_PRELOAD tool
* remove FIXME
* Fix data segment length comparison to unsigned long
* iser: queue pdus when cmdsn exceeds maxcmdsn
* iser: send immediate data
* iser: remove `__packed` from struct iser_cm_hdr declaration
* iser: fix struct iser_rx_desc
* test-tool: avoid use-after-free on iscsi_logout_sync
* Use dynamic memory allocation instead of variable-length arrays
-------------------------------------------------------------------
Tue Sep 24 08:56:59 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Update build dependencies (libgcrypt)
-------------------------------------------------------------------
Tue Aug 13 13:41:47 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.19:
* Mostly internal changes
- Drop no longer needed patches:
* libiscsi-1.18.0-Fix-32bit-build.patch
* libiscsi-rdma.patch
-------------------------------------------------------------------
Fri Jun 22 07:57:31 UTC 2018 - mpluskal@suse.com
- Fix building of recent rdma (boo#1098749):
* libiscsi-rdma.patch
-------------------------------------------------------------------
Wed Mar 14 08:58:53 UTC 2018 - mpluskal@suse.com
- Morernise spec file with spec-clener
-------------------------------------------------------------------
Sat Apr 1 10:29:07 UTC 2017 - mpluskal@suse.com
- Do not build with -Werror
-------------------------------------------------------------------
Mon Nov 14 16:39:09 UTC 2016 - msuchanek@suse.com
- Fix 32bit build (gh#sahlberg/libiscsi#221, boo#1009456)
* libiscsi-1.18.0-Fix-32bit-build.patch
-------------------------------------------------------------------
Sun Nov 6 16:31:38 UTC 2016 - mpluskal@suse.com
- Exclued from building on 32 bit architectures
-------------------------------------------------------------------
Sun Nov 6 12:12:45 UTC 2016 - jengelh@inai.de
- Resolve orthographic problems in description
-------------------------------------------------------------------
Sun Nov 6 09:03:20 UTC 2016 - mpluskal@suse.com
- Update to version 1.18.0:
* Various test updates
* Add support for iSER
* Add support for zero-copy reads
-------------------------------------------------------------------
Tue May 10 07:45:44 UTC 2016 - mpluskal@suse.com
- Update to 1.17.0 (fate#320080)
* Bugfix for a rare condition where if a DATA-OUT PDU has a
callback registered, it can cause a crash on reconnect/timeout.
-------------------------------------------------------------------
Thu May 5 16:28:17 UTC 2016 - mpluskal@suse.com
- Update to 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.
-------------------------------------------------------------------
Thu Nov 26 08:04:36 UTC 2015 - mpluskal@suse.com
- Initial package for libscsi 1.15.0

4
libiscsi.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: libiscsi
version: 1.19.0+git.20230208
mtime: 1675875675
commit: 22f7b26567760921fa1aad77cca642153123ea8c

124
libiscsi.spec Normal file
View File

@ -0,0 +1,124 @@
#
# spec file for package libiscsi
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 9
Name: libiscsi
Version: 1.19.0+git.20230208
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
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bc
BuildRequires: libgcrypt-devel
BuildRequires: librdmacm-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cunit)
%{?suse_build_hwcaps_libs}
%description
libiscsi is a clientside library to implement the iSCSI protocol
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
that can be used to access resource of an iSCSI target.
The library is fully asynchronous with regards to iSCSI commands and
SCSI tasks, but a synchronous layer is also provided for ease of use
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
be used to access resource of an iSCSI target.
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
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
CUnit.
%prep
%autosetup
%build
autoreconf -fiv
%configure \
--enable-manpages \
--disable-werror \
--disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%{_libdir}/libiscsi.so.%{sover}*
%files utils
%license COPYING
%doc LICENCE-* README.md
%{_bindir}/iscsi-inq
%{_bindir}/iscsi-ls
%{_bindir}/iscsi-swp
%{_bindir}/iscsi-perf
%{_bindir}/iscsi-pr
%{_bindir}/iscsi-readcapacity16
%{_mandir}/man1/iscsi-inq.1%{?ext_man}
%{_mandir}/man1/iscsi-ls.1%{?ext_man}
%{_mandir}/man1/iscsi-swp.1%{?ext_man}
%files devel
%{_libdir}/pkgconfig/libiscsi.pc
%{_includedir}/iscsi/
%{_libdir}/libiscsi.so
%files test
%{_bindir}/iscsi-test-cu
%{_mandir}/man1/iscsi-test-cu.1%{?ext_man}
%changelog