Compare commits
10 Commits
18f381e424
...
f92fc5d23a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f92fc5d23a | ||
|
|
0260a10f84 | ||
|
|
8f11130352 | ||
|
|
25c95b9dcf | ||
|
|
58090ed660 | ||
|
|
677c28a9bf | ||
|
|
121ea61b22 | ||
|
|
a94013b64d | ||
|
|
82185efc57 | ||
|
|
c11f7cbc42 |
41
0001-Correct-HBA-Mode-and-Correct-hashlib.md5-usage.patch
Normal file
41
0001-Correct-HBA-Mode-and-Correct-hashlib.md5-usage.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From b49d3f24c6916e7954869bc159eac4861c67f9b0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tasleson tasleson@redhat.com
|
||||||
|
Date: Tue, 2 Apr 2024 16:21:03 +0800
|
||||||
|
Subject: [PATCH] Correct HBA-Mode and Correct hashlib.md5 usage
|
||||||
|
|
||||||
|
---
|
||||||
|
plugin/megaraid_plugin/megaraid.py | 2 +-
|
||||||
|
test/cmdtest.py.in | 4 ++++
|
||||||
|
2 files changed, 5 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/plugin/megaraid_plugin/megaraid.py b/plugin/megaraid_plugin/megaraid.py
|
||||||
|
index eee7233..9004262 100644
|
||||||
|
--- a/plugin/megaraid_plugin/megaraid.py
|
||||||
|
+++ b/plugin/megaraid_plugin/megaraid.py
|
||||||
|
@@ -547,7 +547,7 @@ class MegaRAID(IPlugin):
|
||||||
|
if ctrl_show_all_output["Status"]["Current Personality"] == "HBA-Mode ":
|
||||||
|
mode = System.MODE_HBA
|
||||||
|
else:
|
||||||
|
- mode = System.MODE_HBA
|
||||||
|
+ mode = System.MODE_HARDWARE_RAID
|
||||||
|
else:
|
||||||
|
mode = System.MODE_UNKNOWN
|
||||||
|
|
||||||
|
diff --git a/test/cmdtest.py.in b/test/cmdtest.py.in
|
||||||
|
index 273f07d..46d3379 100755
|
||||||
|
--- a/test/cmdtest.py.in
|
||||||
|
+++ b/test/cmdtest.py.in
|
||||||
|
@@ -65,6 +65,10 @@ def random_iqn():
|
||||||
|
|
||||||
|
s = "iqn.1994-05.com.domain:01."
|
||||||
|
m = hashlib.md5()
|
||||||
|
+ try:
|
||||||
|
+ m = hashlib.md5(usedforsecurity=False)
|
||||||
|
+ except Exception:
|
||||||
|
+ m = hashlib.md5()
|
||||||
|
u = os.uname()
|
||||||
|
for i in u:
|
||||||
|
m.update(i.encode('utf-8'))
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
diff --git a/packaging/daemon/libstoragemgmt.conf b/packaging/daemon/libstoragemgmt.conf
|
|
||||||
index 1c118a9..cdb43c2 100644
|
|
||||||
--- a/packaging/daemon/libstoragemgmt.conf
|
|
||||||
+++ b/packaging/daemon/libstoragemgmt.conf
|
|
||||||
@@ -1,2 +1,2 @@
|
|
||||||
-D /var/run/lsm 0775 root libstoragemgmt -
|
|
||||||
-D /var/run/lsm/ipc 0775 root libstoragemgmt -
|
|
||||||
+D /run/lsm 0775 root libstoragemgmt -
|
|
||||||
+D /run/lsm/ipc 0775 root libstoragemgmt -
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
From 50cd68b994d988c116731a1ff36f3537c6103890 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tony Asleson <tasleson@redhat.com>
|
|
||||||
Date: Wed, 12 Feb 2020 10:04:58 -0600
|
|
||||||
Subject: [PATCH 1/1] Specify signed char
|
|
||||||
|
|
||||||
x86 architecture default to signed characters. Other architectures
|
|
||||||
default to unsigned characters. When building on non-x86 arch we
|
|
||||||
get the following error
|
|
||||||
|
|
||||||
./json.hpp:22700:42: required from here
|
|
||||||
./json.hpp:8494:24: error: comparison is always true due to limited
|
|
||||||
range of data type [-Werror=type-limits]
|
|
||||||
8494 | if ('\x00' <= c and c <= '\x1F')
|
|
||||||
| ~~~~~~~^~~~
|
|
||||||
|
|
||||||
Signed-off-by: Tony Asleson <tasleson@redhat.com>
|
|
||||||
---
|
|
||||||
c_binding/json.hpp | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/c_binding/json.hpp b/c_binding/json.hpp
|
|
||||||
index 6b6655a..a4ed769 100644
|
|
||||||
--- a/c_binding/json.hpp
|
|
||||||
+++ b/c_binding/json.hpp
|
|
||||||
@@ -3097,7 +3097,7 @@ scan_number_done:
|
|
||||||
std::size_t chars_read = 0;
|
|
||||||
|
|
||||||
/// raw input token string (for error messages)
|
|
||||||
- std::vector<char> token_string {};
|
|
||||||
+ std::vector<signed char> token_string {};
|
|
||||||
|
|
||||||
/// buffer for variable-length tokens (numbers, strings)
|
|
||||||
string_t token_buffer {};
|
|
||||||
--
|
|
||||||
2.32.0
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
libstoragemgmt-1.9.8.tar.gz
Normal file
BIN
libstoragemgmt-1.9.8.tar.gz
Normal file
Binary file not shown.
@ -1,20 +1,20 @@
|
|||||||
%global py2_build_dir %{_builddir}/%{name}-%{version}-%{release}-python2
|
%global py2_build_dir %{_builddir}/%{name}-%{version}-%{release}-python2
|
||||||
%define with_python2 0
|
%define with_python2 0
|
||||||
Name: libstoragemgmt
|
Name: libstoragemgmt
|
||||||
Version: 1.8.0
|
Version: 1.9.8
|
||||||
Release: 6
|
Release: 2
|
||||||
Summary: Storage array management library
|
Summary: Storage array management library
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/libstorage/libstoragemgmt
|
URL: https://github.com/libstorage/libstoragemgmt
|
||||||
Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: 0001-Correct-HBA-Mode-and-Correct-hashlib.md5-usage.patch
|
||||||
Patch1: 0001-change-run-dir.patch
|
|
||||||
Patch2: 0002-Specify-signed-char.patch
|
|
||||||
Patch3: fix-too-many-argument-for-format.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ autoconf automake libtool libxml2-devel check-devel perl-interpreter
|
BuildRequires: gcc gcc-c++ autoconf automake libtool libxml2-devel check-devel perl-interpreter
|
||||||
BuildRequires: openssl-devel glib2-devel systemd bash-completion libconfig-devel systemd-devel
|
BuildRequires: glib2-devel systemd bash-completion libconfig-devel systemd-devel
|
||||||
BuildRequires: procps sqlite-devel python3-six python3-devel systemd systemd-devel chrpath valgrind
|
BuildRequires: procps sqlite-devel python3-six python3-devel systemd systemd-devel chrpath
|
||||||
|
%ifarch %{valgrind_arches}
|
||||||
|
BuildRequires: valgrind
|
||||||
|
%endif
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
|
||||||
%if 0%{?with_python2}
|
%if 0%{?with_python2}
|
||||||
@ -67,7 +67,6 @@ Python2 for libstoragemgmt-clibs.
|
|||||||
%package -n python3-libstoragemgmt
|
%package -n python3-libstoragemgmt
|
||||||
Summary: python3 for libstoragemgmt
|
Summary: python3 for libstoragemgmt
|
||||||
Requires: %{name} = %{version}-%{release} python3-libstoragemgmt-clibs
|
Requires: %{name} = %{version}-%{release} python3-libstoragemgmt-clibs
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
|
|
||||||
@ -131,7 +130,6 @@ Udev files for %{name}.
|
|||||||
|
|
||||||
%package nfs-plugin
|
%package nfs-plugin
|
||||||
Summary: Files for NFS local filesystem support for %{name}
|
Summary: Files for NFS local filesystem support for %{name}
|
||||||
BuildArch: noarch
|
|
||||||
Requires: python3-%{name} = %{version} nfs-utils
|
Requires: python3-%{name} = %{version} nfs-utils
|
||||||
Requires(post): python3-%{name} = %{version}
|
Requires(post): python3-%{name} = %{version}
|
||||||
Requires(postun): python3-%{name} = %{version}
|
Requires(postun): python3-%{name} = %{version}
|
||||||
@ -139,9 +137,8 @@ Requires(postun): python3-%{name} = %{version}
|
|||||||
%description nfs-plugin
|
%description nfs-plugin
|
||||||
Files for NFS local filesystem support for %{name}
|
Files for NFS local filesystem support for %{name}
|
||||||
|
|
||||||
|
|
||||||
%package nfs-plugin-clibs
|
%package nfs-plugin-clibs
|
||||||
Summary: clibs package for nfs-plugin
|
Summary: clibs package for nfs-plugin
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description nfs-plugin-clibs
|
%description nfs-plugin-clibs
|
||||||
@ -159,7 +156,12 @@ rm -fr %{py2_build_dir}
|
|||||||
cp -a . %{py2_build_dir}
|
cp -a . %{py2_build_dir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%configure --with-python3
|
%ifarch %{valgrind_arches}
|
||||||
|
WITHOUT_VALGRIND=
|
||||||
|
%else
|
||||||
|
WITHOUT_VALGRIND=--without-mem-leak-test
|
||||||
|
%endif
|
||||||
|
%configure --with-python3 $WITHOUT_VALGRIND
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%if 0%{?with_python2}
|
%if 0%{?with_python2}
|
||||||
@ -302,24 +304,38 @@ fi
|
|||||||
%{_libexecdir}/lsm.d/*.py*
|
%{_libexecdir}/lsm.d/*.py*
|
||||||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/sim.conf
|
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/sim.conf
|
||||||
%{_bindir}/sim_lsmplugin
|
%{_bindir}/sim_lsmplugin
|
||||||
%dir %{python3_sitelib}/lsm
|
%dir %{python3_sitearch}/lsm
|
||||||
%{python3_sitelib}/lsm/*.py
|
%{python3_sitearch}/lsm/*.py
|
||||||
%{python3_sitelib}/lsm/__pycache__/
|
%{python3_sitearch}/lsm/__pycache__/
|
||||||
%{python3_sitelib}/lsm/external/*
|
%{python3_sitearch}/lsm/lsmcli/*
|
||||||
%{python3_sitelib}/lsm/lsmcli/*
|
%dir %{python3_sitearch}/sim_plugin
|
||||||
%{python3_sitelib}/lsm/plugin/sim/*
|
%{python3_sitearch}/sim_plugin/__pycache__/
|
||||||
%{python3_sitelib}/lsm/plugin/__init__.py
|
%{python3_sitearch}/sim_plugin/__init__.*
|
||||||
%{python3_sitelib}/lsm/plugin/__pycache__/
|
%{python3_sitearch}/sim_plugin/simulator.*
|
||||||
|
%{python3_sitearch}/sim_plugin/simarray.*
|
||||||
|
|
||||||
%files -n python3-%{name}-clibs
|
%files -n python3-%{name}-clibs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python3_sitelib}/lsm/_clib.*
|
%{python3_sitearch}/lsm/_clib.*
|
||||||
|
|
||||||
%files smis-plugin
|
%files smis-plugin
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{python3_sitelib}/lsm/plugin/smispy
|
%dir %{python3_sitelib}/smispy_plugin
|
||||||
|
%dir %{python3_sitelib}/smispy_plugin/__pycache__
|
||||||
|
%{python3_sitelib}/smispy_plugin/__pycache__/*
|
||||||
|
%{python3_sitelib}/smispy_plugin/__init__.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/dmtf.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/utils.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_common.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_cap.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_sys.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_pool.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_disk.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_vol.*
|
||||||
|
%{python3_sitelib}/smispy_plugin/smis_ag.*
|
||||||
%{_bindir}/smispy_lsmplugin
|
%{_bindir}/smispy_lsmplugin
|
||||||
%{python3_sitelib}/lsm/plugin/smispy/*
|
%{_mandir}/man1/smispy_lsmplugin.1*
|
||||||
|
|
||||||
%files netapp-plugin
|
%files netapp-plugin
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -327,27 +343,41 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/hpsa.conf
|
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/hpsa.conf
|
||||||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/arcconf.conf
|
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/arcconf.conf
|
||||||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/local.conf
|
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/local.conf
|
||||||
%{_bindir}/ontap_lsmplugin
|
|
||||||
%{_bindir}/targetd_lsmplugin
|
%{_bindir}/targetd_lsmplugin
|
||||||
%{_bindir}/nstor_lsmplugin
|
|
||||||
%{_bindir}/megaraid_lsmplugin
|
%{_bindir}/megaraid_lsmplugin
|
||||||
%{_bindir}/hpsa_lsmplugin
|
%{_bindir}/hpsa_lsmplugin
|
||||||
%{_bindir}/arcconf_lsmplugin
|
%{_bindir}/arcconf_lsmplugin
|
||||||
%{_bindir}/local_lsmplugin
|
%{_bindir}/local_lsmplugin
|
||||||
%dir %{python3_sitelib}/lsm/plugin/ontap
|
%{python3_sitelib}/hpsa_plugin/__pycache__/*
|
||||||
%{python3_sitelib}/lsm/plugin/ontap/*
|
%{python3_sitelib}/hpsa_plugin/__init__.*
|
||||||
%dir %{python3_sitelib}/lsm/plugin/targetd
|
%{python3_sitelib}/hpsa_plugin/hpsa.*
|
||||||
%{python3_sitelib}/lsm/plugin/targetd/*
|
%{python3_sitelib}/hpsa_plugin/utils.*
|
||||||
%dir %{python3_sitelib}/lsm/plugin/nstor
|
%{_mandir}/man1/hpsa_lsmplugin.1*
|
||||||
%{python3_sitelib}/lsm/plugin/nstor/*
|
%dir %{python3_sitelib}/arcconf_plugin
|
||||||
%dir %{python3_sitelib}/lsm/plugin/megaraid
|
%dir %{python3_sitelib}/arcconf_plugin/__pycache__
|
||||||
%{python3_sitelib}/lsm/plugin/megaraid/*
|
%{python3_sitelib}/arcconf_plugin/__pycache__/*
|
||||||
%dir %{python3_sitelib}/lsm/plugin/hpsa
|
%{python3_sitelib}/arcconf_plugin/__init__.*
|
||||||
%{python3_sitelib}/lsm/plugin/hpsa/*
|
%{python3_sitelib}/arcconf_plugin/arcconf.*
|
||||||
%dir %{python3_sitelib}/lsm/plugin/arcconf
|
%{python3_sitelib}/arcconf_plugin/utils.*
|
||||||
%{python3_sitelib}/lsm/plugin/arcconf/*
|
%dir %{python3_sitelib}/local_plugin
|
||||||
%dir %{python3_sitelib}/lsm/plugin/local
|
%dir %{python3_sitelib}/local_plugin/__pycache__
|
||||||
%{python3_sitelib}/lsm/plugin/local/*
|
%{python3_sitelib}/local_plugin/__pycache__/*
|
||||||
|
%{python3_sitelib}/local_plugin/__init__.*
|
||||||
|
%{python3_sitelib}/local_plugin/local.*
|
||||||
|
%{_mandir}/man1/local_lsmplugin.1*
|
||||||
|
%dir %{python3_sitelib}/megaraid_plugin
|
||||||
|
%dir %{python3_sitelib}/megaraid_plugin/__pycache__
|
||||||
|
%{python3_sitelib}/megaraid_plugin/__pycache__/*
|
||||||
|
%{python3_sitelib}/megaraid_plugin/__init__.*
|
||||||
|
%{python3_sitelib}/megaraid_plugin/megaraid.*
|
||||||
|
%{python3_sitelib}/megaraid_plugin/utils.*
|
||||||
|
%{_mandir}/man1/megaraid_lsmplugin.1*
|
||||||
|
%dir %{python3_sitelib}/targetd_plugin
|
||||||
|
%dir %{python3_sitelib}/targetd_plugin/__pycache__
|
||||||
|
%{python3_sitelib}/targetd_plugin/__pycache__/*
|
||||||
|
%{python3_sitelib}/targetd_plugin/__init__.*
|
||||||
|
%{python3_sitelib}/targetd_plugin/targetd.*
|
||||||
|
%{_mandir}/man1/targetd_lsmplugin.1*
|
||||||
|
|
||||||
%files udev
|
%files udev
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -358,13 +388,15 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/nfs.conf
|
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/nfs.conf
|
||||||
%{_bindir}/nfs_lsmplugin
|
%{_bindir}/nfs_lsmplugin
|
||||||
%dir %{python3_sitelib}/lsm/plugin/nfs
|
%dir %{python3_sitearch}/nfs_plugin
|
||||||
%{python3_sitelib}/lsm/plugin/nfs/__pycache__/*
|
%dir %{python3_sitearch}/nfs_plugin/__pycache__
|
||||||
%{python3_sitelib}/lsm/plugin/nfs/__init__.*
|
%{python3_sitearch}/nfs_plugin/__pycache__/*
|
||||||
%{python3_sitelib}/lsm/plugin/nfs/nfs.*
|
%{python3_sitearch}/nfs_plugin/__init__.*
|
||||||
|
%{python3_sitearch}/nfs_plugin/nfs.*
|
||||||
|
%{_mandir}/man1/nfs_lsmplugin.1*
|
||||||
|
|
||||||
%files nfs-plugin-clibs
|
%files nfs-plugin-clibs
|
||||||
%{python3_sitelib}/lsm/plugin/nfs/nfs_clib.*
|
%{python3_sitearch}/nfs_plugin/nfs_clib.*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -372,6 +404,21 @@ fi
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 2 2024 wulei <baiguo@kylinos.cn> - 1.9.8-2
|
||||||
|
- Correct HBA Mode and Correct hashlib.md5 usage
|
||||||
|
|
||||||
|
* Wed Oct 11 2023 wulei <wu_lei@hoperun.com> - 1.9.8-1
|
||||||
|
- Update to 1.9.8
|
||||||
|
|
||||||
|
* Wed Sep 20 2023 laokz <zhangkai@iscas.ac.cn> - 1.9.6-2
|
||||||
|
- make with_mem_leak_test option following %{valgrind_arches}
|
||||||
|
|
||||||
|
* Tue Feb 7 2023 xu_ping <xuping33@h-partners.com> - 1.9.6-1
|
||||||
|
- Upgrade 1.9.6
|
||||||
|
|
||||||
|
* Sat Jan 7 2023 mengwenhua <mengwenhua@xfusion.com> - 1.8.0-7
|
||||||
|
- Sim fs resize
|
||||||
|
|
||||||
* Fri Jan 28 2022 wulei <wulei80@huawei.com> - 1.8.0-6
|
* Fri Jan 28 2022 wulei <wulei80@huawei.com> - 1.8.0-6
|
||||||
- fix too many argument for format
|
- fix too many argument for format
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user