import python-rtslib-2.1.72-1.el8

This commit is contained in:
CentOS Sources 2020-05-14 22:39:15 +00:00 committed by Andrew Lukoshko
parent 5e2edc5af1
commit 7e68d6630f
5 changed files with 25 additions and 12 deletions

2
.gitignore vendored
View File

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

View File

@ -1 +1 @@
9b8cf949711c104d5bf324847c37e386a4ea8ee1 SOURCES/rtslib-fb-2.1.71.tar.gz b44c8b66a8002c4d7eb6203639d151b0c956b11e SOURCES/rtslib-fb-2.1.72.tar.gz

View File

@ -1,15 +1,16 @@
diff --git a/rtslib/fabric.py b/rtslib/fabric.py diff --git a/rtslib/fabric.py b/rtslib/fabric.py
index b529f14..8264c37 100644 index 02e156c..ff7387f 100644
--- a/rtslib/fabric.py --- a/rtslib/fabric.py
+++ b/rtslib/fabric.py +++ b/rtslib/fabric.py
@@ -465,12 +465,12 @@ fabric_modules = { @@ -464,13 +464,13 @@ fabric_modules = {
"srpt": SRPTFabricModule,
"iscsi": ISCSIFabricModule, "iscsi": ISCSIFabricModule,
"loopback": LoopbackFabricModule, "loopback": LoopbackFabricModule,
- "qla2xxx": Qla2xxxFabricModule, - "qla2xxx": Qla2xxxFabricModule,
+# "qla2xxx": Qla2xxxFabricModule,
- "sbp": SBPFabricModule, - "sbp": SBPFabricModule,
+# "sbp": SBPFabricModule,
- "tcm_fc": FCoEFabricModule, - "tcm_fc": FCoEFabricModule,
+# "qla2xxx": Qla2xxxFabricModule,
+# "sbp": SBPFabricModule,
+# "tcm_fc": FCoEFabricModule, +# "tcm_fc": FCoEFabricModule,
# "usb_gadget": USBGadgetFabricModule, # very rare, don't show # "usb_gadget": USBGadgetFabricModule, # very rare, don't show
- "vhost": VhostFabricModule, - "vhost": VhostFabricModule,

View File

@ -1,13 +1,22 @@
diff --git a/rtslib/root.py b/rtslib/root.py diff --git a/rtslib/root.py b/rtslib/root.py
index b83d7ee..49c4dfc 100644 index 15d8cc5..c4a6d43 100644
--- a/rtslib/root.py --- a/rtslib/root.py
+++ b/rtslib/root.py +++ b/rtslib/root.py
@@ -166,13 +166,13 @@ class RTSRoot(CFSNode): @@ -166,21 +166,21 @@ class RTSRoot(CFSNode):
self._dbroot = self._default_dbroot self._dbroot = self._default_dbroot
return return
self._dbroot = fread(dbroot_path) self._dbroot = fread(dbroot_path)
- if self._dbroot != self._preferred_dbroot: - if self._dbroot != self._preferred_dbroot:
+ if self._dbroot != self._default_dbroot: + if self._dbroot != self._default_dbroot:
if len(FabricModule.list_registered_drivers()) is not 0:
# Writing to dbroot_path after drivers have been registered will make the kernel emit this error:
# db_root: cannot be changed: target drivers registered
from warnings import warn
warn("Cannot set dbroot to {}. Target drivers have already been registered."
- .format(self._preferred_dbroot))
+ .format(self._default_dbroot))
return
try: try:
- fwrite(dbroot_path, self._preferred_dbroot+"\n") - fwrite(dbroot_path, self._preferred_dbroot+"\n")
+ fwrite(dbroot_path, self._default_dbroot+"\n") + fwrite(dbroot_path, self._default_dbroot+"\n")

View File

@ -21,10 +21,10 @@ Name: python-rtslib
License: ASL 2.0 License: ASL 2.0
Group: System Environment/Libraries Group: System Environment/Libraries
Summary: API for Linux kernel LIO SCSI target Summary: API for Linux kernel LIO SCSI target
Version: 2.1.71 Version: 2.1.72
Release: 4%{?dist} Release: 1%{?dist}
URL: https://fedorahosted.org/targetcli-fb/ URL: https://github.com/open-iscsi/%{oname}
Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
Source1: target.service Source1: target.service
Patch0: 0001-Turn-off-unsupported-fabrics.patch Patch0: 0001-Turn-off-unsupported-fabrics.patch
Patch1: 0002-default_dbroot.patch Patch1: 0002-default_dbroot.patch
@ -191,6 +191,9 @@ install -m 644 doc/saveconfig.json.5.gz %{buildroot}%{_mandir}/man5/
%endif # with python2 %endif # with python2
%changelog %changelog
* Mon May 11 2020 Maurizio Lombardi <mlombard@redhat.com> - 2.1.72-1
- Update to new upstream version
* Thu Dec 12 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.71-4 * Thu Dec 12 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.71-4
- LIO should use /var/target for its runtime files - LIO should use /var/target for its runtime files