import python-rtslib-2.1.71-4.el8

This commit is contained in:
CentOS Sources 2020-04-28 05:36:00 -04:00 committed by Andrew Lukoshko
parent 266392453b
commit a2567b87ec
5 changed files with 42 additions and 5 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/rtslib-fb-2.1.fb69.tar.gz
SOURCES/rtslib-fb-2.1.71.tar.gz

View File

@ -1 +1 @@
4148d5c9083d72a952d431809db1adbea93668de SOURCES/rtslib-fb-2.1.fb69.tar.gz
9b8cf949711c104d5bf324847c37e386a4ea8ee1 SOURCES/rtslib-fb-2.1.71.tar.gz

View File

@ -5,7 +5,8 @@ index b529f14..8264c37 100644
@@ -465,12 +465,12 @@ fabric_modules = {
"iscsi": ISCSIFabricModule,
"loopback": LoopbackFabricModule,
"qla2xxx": Qla2xxxFabricModule,
- "qla2xxx": Qla2xxxFabricModule,
+# "qla2xxx": Qla2xxxFabricModule,
- "sbp": SBPFabricModule,
+# "sbp": SBPFabricModule,
- "tcm_fc": FCoEFabricModule,

View File

@ -0,0 +1,22 @@
diff --git a/rtslib/root.py b/rtslib/root.py
index b83d7ee..49c4dfc 100644
--- a/rtslib/root.py
+++ b/rtslib/root.py
@@ -166,13 +166,13 @@ class RTSRoot(CFSNode):
self._dbroot = self._default_dbroot
return
self._dbroot = fread(dbroot_path)
- if self._dbroot != self._preferred_dbroot:
+ if self._dbroot != self._default_dbroot:
try:
- fwrite(dbroot_path, self._preferred_dbroot+"\n")
+ fwrite(dbroot_path, self._default_dbroot+"\n")
except:
- if not os.path.isdir(self._preferred_dbroot):
+ if not os.path.isdir(self._default_dbroot):
raise RTSLibError("Cannot set dbroot to {}. Please check if this directory exists."
- .format(self._preferred_dbroot))
+ .format(self._default_dbroot))
self._dbroot = fread(dbroot_path)
def _get_dbroot(self):

View File

@ -21,12 +21,13 @@ Name: python-rtslib
License: ASL 2.0
Group: System Environment/Libraries
Summary: API for Linux kernel LIO SCSI target
Version: 2.1.fb69
Release: 3%{?dist}
Version: 2.1.71
Release: 4%{?dist}
URL: https://fedorahosted.org/targetcli-fb/
Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
Source1: target.service
Patch0: 0001-Turn-off-unsupported-fabrics.patch
Patch1: 0002-default_dbroot.patch
BuildArch: noarch
BuildRequires: systemd-units
Requires(post): systemd
@ -100,6 +101,7 @@ on system restart.
%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%if %{with python3}
rm -rf %{py3dir}
@ -189,6 +191,18 @@ install -m 644 doc/saveconfig.json.5.gz %{buildroot}%{_mandir}/man5/
%endif # with python2
%changelog
* Thu Dec 12 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.71-4
- LIO should use /var/target for its runtime files
* Thu Nov 28 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.71-2
- Remove support to qla2xxx
* Tue Nov 19 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.71-1
- Update to new upstream version
* Wed May 15 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.fb69-4
- report the correct size for partitions
* Thu Jan 17 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.fb69-3
- Disable the FCoE fabric module