diff --git a/fix-mapping-the-new-LUN-to-the-node-ACL.patch b/fix-mapping-the-new-LUN-to-the-node-ACL.patch new file mode 100644 index 0000000000000000000000000000000000000000..c9ec38a6040346396a18ce9f5b769d010201a6b6 --- /dev/null +++ b/fix-mapping-the-new-LUN-to-the-node-ACL.patch @@ -0,0 +1,30 @@ +From 560993168d85ec7c84e9aacba5659aa17b40588c Mon Sep 17 00:00:00 2001 +From: Maurizio Lombardi +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 + +--- + 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 + diff --git a/targetcli.spec b/targetcli.spec index bc09fe9898491341c1727d9ce35b846ff73a82d4..da95896c23dc549cc7d283ad6e59150e64b91771 100644 --- a/targetcli.spec +++ b/targetcli.spec @@ -2,10 +2,11 @@ Name: targetcli License: ASL 2.0 Summary: Generic SCSI target CLI shell Version: 2.1.56 -Release: 2 +Release: 3 URL: https://github.com/open-iscsi/targetcli-fb Source: https://github.com/open-iscsi/targetcli-fb/archive/v%{version}/targetcli-fb-%{version}.tar.gz Patch01: remove-reference-to-MAX_LUN.patch +Patch02: fix-mapping-the-new-LUN-to-the-node-ACL.patch BuildArch: noarch BuildRequires: python3-devel python3-setuptools systemd 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* %changelog +* Mon May 13 2024 yanshuai - 2.1.56-3 +- fix mapping the new LUN to the node ACL + * Wed May 8 2024 yanshuai - 2.1.56-2 - remove the reference to MAX_LUN