Skip to content

Commit

Permalink
fix: iscsi-tools extension
Browse files Browse the repository at this point in the history
Apply the upstream patch (no release yet).

Fixes: #490

Signed-off-by: Noel Georgi <[email protected]>
(cherry picked from commit 544ebcf)
  • Loading branch information
frezbo authored and smira committed Oct 23, 2024
1 parent 97427ac commit 442396f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions storage/iscsi-tools/open-iscsi/patches/login-scan-manual.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# https://github.com/open-iscsi/open-iscsi/pull/485
# https://patch-diff.githubusercontent.com/raw/open-iscsi/open-iscsi/pull/485.patch
From c96f3788ff82c58b843a4412e91b8e1ce30d0a0f Mon Sep 17 00:00:00 2001
From: Mike Christie <[email protected]>
Date: Fri, 18 Oct 2024 18:07:30 -0500
Subject: [PATCH] iscsid: Fix hang during login with scan=manual

This fixes a regressions added in:

48e683c ('iscsid: Rescan devices on relogin (#444)

For scan=manual we were not sending a response to callers like
iscsiadm so they would hang. This has us send the response like
before.
---
usr/initiator.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr/initiator.c b/usr/initiator.c
index bac4a1d2..0fe959bc 100644
--- a/usr/initiator.c
+++ b/usr/initiator.c
@@ -1023,8 +1023,10 @@ static void session_scan_host(struct iscsi_session *session, int hostno,
{
pid_t pid;

- if (!rescan && !idbm_session_autoscan(session))
+ if (!rescan && !idbm_session_autoscan(session)) {
+ mgmt_ipc_write_rsp(qtask, ISCSI_SUCCESS);
return;
+ }

pid = iscsi_sysfs_scan_host(hostno, session->id, 1, rescan);
if (pid == 0) {
1 change: 1 addition & 0 deletions storage/iscsi-tools/open-iscsi/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ steps:
ln -s /toolchain/bin/pkg-config /usr/bin/pkg-config
ln -s /toolchain/bin/file /usr/bin/file
patch -p1 < /pkg/patches/login-scan-manual.patch
patch -p1 < /pkg/patches/musl-fixes.patch
patch -p1 < /pkg/patches/add-missing-headers.patch
patch -p1 < /pkg/patches/dont-use-lib64.patch
Expand Down
2 changes: 1 addition & 1 deletion storage/iscsi-tools/vars.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION: v0.1.5
VERSION: v0.1.6
# renovate: datasource=github-tags depName=open-iscsi/open-iscsi
OPEN_ISCSI_VERSION: 2.1.10
# renovate: datasource=github-tags extractVersion=^v(?<version>.*)$ depName=open-iscsi/open-isns
Expand Down

0 comments on commit 442396f

Please sign in to comment.