fix mapping the new LUN to the node ACL
This commit is contained in:
parent
8ebaf3da26
commit
cb6fd31a2a
30
fix-mapping-the-new-LUN-to-the-node-ACL.patch
Normal file
30
fix-mapping-the-new-LUN-to-the-node-ACL.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From 560993168d85ec7c84e9aacba5659aa17b40588c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Maurizio Lombardi <mlombard@redhat.com>
|
||||||
|
Date: Tue, 30 Jan 2024 13:03:08 +0100
|
||||||
|
Subject: [PATCH] Fix mapping the new LUN to the node ACL
|
||||||
|
|
||||||
|
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
targetcli/ui_target.py | 5 ++---
|
||||||
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/targetcli/ui_target.py b/targetcli/ui_target.py
|
||||||
|
index 2c46765..56f5419 100644
|
||||||
|
--- a/targetcli/ui_target.py
|
||||||
|
+++ b/targetcli/ui_target.py
|
||||||
|
@@ -1151,9 +1151,8 @@ class UILUNs(UINode):
|
||||||
|
possible_mlun += 1
|
||||||
|
mapped_lun = possible_mlun
|
||||||
|
|
||||||
|
- else:
|
||||||
|
- mlun = MappedLUN(acl, mapped_lun, lun_object, write_protect=False)
|
||||||
|
- self.shell.log.info("Created LUN %d->%d mapping in node ACL %s"
|
||||||
|
+ mlun = MappedLUN(acl, mapped_lun, lun_object, write_protect=False)
|
||||||
|
+ self.shell.log.info("Created LUN %d->%d mapping in node ACL %s"
|
||||||
|
% (mlun.tpg_lun.lun, mlun.mapped_lun, acl.node_wwn))
|
||||||
|
self.parent.refresh()
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -2,10 +2,11 @@ Name: targetcli
|
|||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Summary: Generic SCSI target CLI shell
|
Summary: Generic SCSI target CLI shell
|
||||||
Version: 2.1.56
|
Version: 2.1.56
|
||||||
Release: 2
|
Release: 3
|
||||||
URL: https://github.com/open-iscsi/targetcli-fb
|
URL: https://github.com/open-iscsi/targetcli-fb
|
||||||
Source: https://github.com/open-iscsi/targetcli-fb/archive/v%{version}/targetcli-fb-%{version}.tar.gz
|
Source: https://github.com/open-iscsi/targetcli-fb/archive/v%{version}/targetcli-fb-%{version}.tar.gz
|
||||||
Patch01: remove-reference-to-MAX_LUN.patch
|
Patch01: remove-reference-to-MAX_LUN.patch
|
||||||
|
Patch02: fix-mapping-the-new-LUN-to-the-node-ACL.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel python3-setuptools systemd
|
BuildRequires: python3-devel python3-setuptools systemd
|
||||||
Requires: python3-rtslib target-restore python3-configshell python3-six python3-dbus python3-gobject-base
|
Requires: python3-rtslib target-restore python3-configshell python3-six python3-dbus python3-gobject-base
|
||||||
@ -48,6 +49,9 @@ install -m 644 systemd/* %{buildroot}%{_unitdir}/
|
|||||||
%{_mandir}/man8/targetcli*.8*
|
%{_mandir}/man8/targetcli*.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 13 2024 yanshuai <yanshuai@kylinos.cn> - 2.1.56-3
|
||||||
|
- fix mapping the new LUN to the node ACL
|
||||||
|
|
||||||
* Wed May 8 2024 yanshuai <yanshuai@kylinos.cn> - 2.1.56-2
|
* Wed May 8 2024 yanshuai <yanshuai@kylinos.cn> - 2.1.56-2
|
||||||
- remove the reference to MAX_LUN
|
- remove the reference to MAX_LUN
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user