#7 Fix Missing space issue from the output
Opened 4 years ago by afazekas. Modified 4 years ago
rpms/ afazekas/iscsi-initiator-utils master  into  rawhide

@@ -0,0 +1,28 @@ 

+ From baa0cb45cfcf10a81283c191b0b236cd1a2f66ee Mon Sep 17 00:00:00 2001

+ From: Lee Duncan <lduncan@suse.com>

+ Date: Fri, 12 Oct 2018 09:57:20 -0700

+ Subject: [PATCH] Restore space in node-mode level 0 output

+ 

+ As part of the libopeniscsiusr update, the output

+ of "iscsiadm -m node" dropped a space that needs to

+ be between the portal and the target, for proper

+ parsing.

+ 

+ Fixes: 87ea50a1c3a97

+ ---

+  usr/iscsiadm.c | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c

+ index e3ba03c8..25c6cdc0 100644

+ --- a/usr/iscsiadm.c

+ +++ b/usr/iscsiadm.c

+ @@ -683,7 +683,7 @@ static int login_portals(struct node_rec *pattern_rec)

+  

+  static void print_node_flat(struct iscsi_node *node)

+  {

+ -              printf("%s,%" PRIu16 "%s\n",

+ +              printf("%s,%" PRIu16 " %s\n",

+                       iscsi_node_portal_get(node),

+                       iscsi_node_tpgt_get(node),

+                       iscsi_node_target_name_get(node));

file modified
+5 -1
@@ -9,7 +9,7 @@ 

  Summary: iSCSI daemon and utility programs

  Name: iscsi-initiator-utils

  Version: 6.%{open_iscsi_version}.%{open_iscsi_build}

- Release: 11.git%{shortcommit0}%{?dist}

+ Release: 12.git%{shortcommit0}%{?dist}

  License: GPLv2+

  URL: http://www.open-iscsi.org

  Source0: https://github.com/open-iscsi/open-iscsi/archive/%{commit0}.tar.gz#/open-iscsi-%{shortcommit0}.tar.gz
@@ -41,6 +41,7 @@ 

  Patch0023: 0023-libiscsi-fix-build-to-use-libopeniscsiusr.patch

  Patch0024: 0024-dont-install-scripts.patch

  Patch0028: 0028-use-var-lib-iscsi-in-libopeniscsiusr.patch

+ Patch0029: 0029-Restore-space-in-node-mode.patch

  

  BuildRequires: flex bison doxygen kmod-devel systemd-units

  BuildRequires: autoconf automake libtool libmount-devel openssl-devel
@@ -336,6 +337,9 @@ 

  %{python3_sitearch}/*

  

  %changelog

+ * Fri Aug 23 2019 Attila Fazekas <afazekas@redhat.com> - - 6.2.0.876-12.gitf3c8e90

+ - iscsiadm: restore missing space from the "iscsiadm -m node" output

+ 

  * Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 6.2.0.876-11.gitf3c8e90

  - Rebuilt for Python 3.8