multipath-tools: upgrade 0.9.8 -> 0.10.0

ChangeLog:
https://github.com/opensvc/multipath-tools/blob/0.10.0/NEWS.md

* Refresh patches.
* Drop 0001-libmultipath-always-use-glibc-basename.patch as the issue
  has been fixed upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yi Zhao
2024-10-06 18:43:39 +08:00
committed by Khem Raj
parent 276ac2c78e
commit a8bb333e65
15 changed files with 78 additions and 117 deletions
@@ -1,7 +1,7 @@
From 1e1ba9ecc16895bf472eae345d44631b65629611 Mon Sep 17 00:00:00 2001 From 68160e86472b197107c60bf6e5a3d126040e85b6 Mon Sep 17 00:00:00 2001
From: Benjamin Marzinski <bmarzins@redhat.com> From: Benjamin Marzinski <bmarzins@redhat.com>
Date: Thu, 13 Apr 2017 07:22:23 -0500 Date: Thu, 13 Apr 2017 07:22:23 -0500
Subject: [PATCH 01/12] RH: fixup udev rules for redhat Subject: [PATCH] RH: fixup udev rules for redhat
The multipath rules need to run after scsi_id is run. This means moving The multipath rules need to run after scsi_id is run. This means moving
them after 60-persistent-storage.rules for redhat. Redhat also uses a them after 60-persistent-storage.rules for redhat. Redhat also uses a
@@ -18,17 +18,20 @@ Rebase to 0.9.8
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com>
Upstream-Status: Pending Upstream-Status: Pending
Rebase to 0.10.0
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
--- ---
Makefile.inc | 2 +- Makefile.inc | 2 +-
kpartx/kpartx.rules | 2 +- kpartx/kpartx.rules.in | 2 +-
multipath/Makefile | 4 ++-- multipath/Makefile | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-) 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc diff --git a/Makefile.inc b/Makefile.inc
index 5668e638..de89b21f 100644 index 729618bd..69521882 100644
--- a/Makefile.inc --- a/Makefile.inc
+++ b/Makefile.inc +++ b/Makefile.inc
@@ -59,7 +59,7 @@ tmpfilesdir := $(systemd_prefix)lib/tmpfiles.d @@ -62,7 +62,7 @@ tmpfilesdir := $(systemd_prefix)lib/tmpfiles.d
modulesloaddir := $(systemd_prefix)lib/modules-load.d modulesloaddir := $(systemd_prefix)lib/modules-load.d
libudevdir := $(systemd_prefix)lib/udev libudevdir := $(systemd_prefix)lib/udev
udevrulesdir := $(libudevdir)/rules.d udevrulesdir := $(libudevdir)/rules.d
@@ -37,16 +40,16 @@ index 5668e638..de89b21f 100644
mandir := $(usr_prefix)share/man mandir := $(usr_prefix)share/man
LIB := $(if $(shell test -d /lib64 && echo 1),lib64,lib) LIB := $(if $(shell test -d /lib64 && echo 1),lib64,lib)
syslibdir := $(prefix)$(LIB) syslibdir := $(prefix)$(LIB)
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules diff --git a/kpartx/kpartx.rules.in b/kpartx/kpartx.rules.in
index 1969dee0..d2b28233 100644 index 9d879609..2049eb8f 100644
--- a/kpartx/kpartx.rules --- a/kpartx/kpartx.rules.in
+++ b/kpartx/kpartx.rules +++ b/kpartx/kpartx.rules.in
@@ -39,6 +39,6 @@ LABEL="mpath_kpartx_end" @@ -39,6 +39,6 @@ LABEL="mpath_kpartx_end"
GOTO="kpartx_end" GOTO="kpartx_end"
LABEL="run_kpartx" LABEL="run_kpartx"
-RUN+="/sbin/kpartx -un -p -part /dev/$name" -RUN+="@BINDIR@/kpartx -un -p -part /dev/$name"
+RUN+="/sbin/kpartx -un /dev/$name" +RUN+="@BINDIR@/kpartx -un /dev/$name"
LABEL="kpartx_end" LABEL="kpartx_end"
diff --git a/multipath/Makefile b/multipath/Makefile diff --git a/multipath/Makefile b/multipath/Makefile
@@ -1,42 +0,0 @@
From 389286b25a903be62ce7f964246824fcc20c4c67 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 26 Mar 2024 18:56:55 -0700
Subject: [PATCH] libmultipath: always use glibc basename()
There is a use of basename() which expects it to be GNU version of
basename, which is not available in other libcs e.g. musl on Linux
therefore provide a version for such cases
Upstream-Status: Submitted [https://github.com/opensvc/multipath-tools/pull/84]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
libmultipath/configure.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/libmultipath/configure.c b/libmultipath/configure.c
index 4ecf6ba4..e81cc67c 100644
--- a/libmultipath/configure.c
+++ b/libmultipath/configure.c
@@ -43,6 +43,19 @@
#include "sysfs.h"
#include "io_err_stat.h"
+#ifndef __GLIBC__
+/*
+ * glibc's non-destructive version of basename()
+ * License: LGPL-2.1-or-later
+ */
+static const char *__basename(const char *filename)
+{
+ char *p = strrchr(filename, '/');
+ return p ? p + 1 : filename;
+}
+#define basename(x) __basename(x)
+#endif
+
/* group paths in pg by host adapter
*/
int group_by_host_adapter(struct pathgroup *pgp, vector adapters)
--
2.44.0
@@ -1,7 +1,7 @@
From bb6db01cc19940bb5162c1cc0c9b5f8e4c209822 Mon Sep 17 00:00:00 2001 From e3449e163d7fe9bf1e188f0e28962f0659e9652d Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Fri, 1 Mar 2024 10:34:06 +0800 Date: Fri, 1 Mar 2024 10:34:06 +0800
Subject: [PATCH 02/12] RH: Remove the property blacklist exception builtin Subject: [PATCH] RH: Remove the property blacklist exception builtin
Multipath set the default property blacklist exceptions to Multipath set the default property blacklist exceptions to
(ID_SCSI_VPD|ID_WWN). This has the effect of blacklisting some internal (ID_SCSI_VPD|ID_WWN). This has the effect of blacklisting some internal
@@ -13,21 +13,19 @@ it.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Upsteam-Status: Pending Upstream-Status: Pending
[OP: Rebase to 0.9.3] [OP: Rebase to 0.9.3]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Rebase to 0.9.8 Rebase to 0.9.8
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com>
Upstream-Status: Pending
--- ---
libmultipath/blacklist.c | 16 +++++----------- libmultipath/blacklist.c | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-) 1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
index 75100b20..4fdaca76 100644 index 17e1b54a..2cfb18b8 100644
--- a/libmultipath/blacklist.c --- a/libmultipath/blacklist.c
+++ b/libmultipath/blacklist.c +++ b/libmultipath/blacklist.c
@@ -221,15 +221,6 @@ setup_default_blist (struct config * conf) @@ -221,15 +221,6 @@ setup_default_blist (struct config * conf)
@@ -1,7 +1,7 @@
From de8ee3480ec7479ed014c197a9d747403f6e0237 Mon Sep 17 00:00:00 2001 From 06a411b15e131eb4ebc2df95dc10fcff944bead6 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Fri, 23 Nov 2018 17:25:15 +0800 Date: Fri, 23 Nov 2018 17:25:15 +0800
Subject: [PATCH 03/12] RH: don't start without a config file Subject: [PATCH] RH: don't start without a config file
If /etc/multipath.conf doesn't exist, don't start multipathd and blacklist If /etc/multipath.conf doesn't exist, don't start multipathd and blacklist
all devices when running multipath. A completely blank configuration file all devices when running multipath. A completely blank configuration file
@@ -28,7 +28,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
5 files changed, 23 insertions(+) 5 files changed, 23 insertions(+)
diff --git a/libmultipath/config.c b/libmultipath/config.c diff --git a/libmultipath/config.c b/libmultipath/config.c
index 83fa7369..8a3a8f37 100644 index 0e3a5cc1..3fbfcc85 100644
--- a/libmultipath/config.c --- a/libmultipath/config.c
+++ b/libmultipath/config.c +++ b/libmultipath/config.c
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
@@ -39,7 +39,7 @@ index 83fa7369..8a3a8f37 100644
/* /*
* We don't support re-initialization after * We don't support re-initialization after
@@ -959,6 +960,23 @@ int _init_config (const char *file, struct config *conf) @@ -959,6 +960,23 @@ int init_config__ (const char *file, struct config *conf)
} }
factorize_hwtable(conf->hwtable, builtin_hwtable_size, file); factorize_hwtable(conf->hwtable, builtin_hwtable_size, file);
validate_pctable(conf->overrides, 0, file); validate_pctable(conf->overrides, 0, file);
@@ -64,7 +64,7 @@ index 83fa7369..8a3a8f37 100644
conf->processed_main_config = 1; conf->processed_main_config = 1;
diff --git a/libmultipath/config.h b/libmultipath/config.h diff --git a/libmultipath/config.h b/libmultipath/config.h
index 384193ab..158cebf0 100644 index 94cdf252..534b6142 100644
--- a/libmultipath/config.h --- a/libmultipath/config.h
+++ b/libmultipath/config.h +++ b/libmultipath/config.h
@@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
@@ -76,7 +76,7 @@ index 384193ab..158cebf0 100644
enum devtypes { enum devtypes {
DEV_NONE, DEV_NONE,
diff --git a/multipath/multipath.rules.in b/multipath/multipath.rules.in diff --git a/multipath/multipath.rules.in b/multipath/multipath.rules.in
index 780bf852..2c518378 100644 index 2ac1972f..cc248231 100644
--- a/multipath/multipath.rules.in --- a/multipath/multipath.rules.in
+++ b/multipath/multipath.rules.in +++ b/multipath/multipath.rules.in
@@ -9,6 +9,7 @@ IMPORT{cmdline}="nompath" @@ -9,6 +9,7 @@ IMPORT{cmdline}="nompath"
@@ -88,7 +88,7 @@ index 780bf852..2c518378 100644
ENV{DEVTYPE}!="partition", GOTO="test_dev" ENV{DEVTYPE}!="partition", GOTO="test_dev"
IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH" IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH"
diff --git a/multipathd/multipathd.8.in b/multipathd/multipathd.8.in diff --git a/multipathd/multipathd.8.in b/multipathd/multipathd.8.in
index f1cab3ff..5ae21db1 100644 index 7bc8806e..315884eb 100644
--- a/multipathd/multipathd.8.in --- a/multipathd/multipathd.8.in
+++ b/multipathd/multipathd.8.in +++ b/multipathd/multipathd.8.in
@@ -49,6 +49,8 @@ map regains its maximum performance and redundancy. @@ -49,6 +49,8 @@ map regains its maximum performance and redundancy.
@@ -101,7 +101,7 @@ index f1cab3ff..5ae21db1 100644
. .
.\" ---------------------------------------------------------------------------- .\" ----------------------------------------------------------------------------
diff --git a/multipathd/multipathd.service.in b/multipathd/multipathd.service.in diff --git a/multipathd/multipathd.service.in b/multipathd/multipathd.service.in
index 6d03ff71..0cd85102 100644 index 646001e6..979e6f12 100644
--- a/multipathd/multipathd.service.in --- a/multipathd/multipathd.service.in
+++ b/multipathd/multipathd.service.in +++ b/multipathd/multipathd.service.in
@@ -5,6 +5,7 @@ Before=local-fs-pre.target blk-availability.service shutdown.target @@ -5,6 +5,7 @@ Before=local-fs-pre.target blk-availability.service shutdown.target
@@ -1,7 +1,7 @@
From f1b74f21875d6d9f0a5ac3d67df40a28b167052a Mon Sep 17 00:00:00 2001 From dd4f005ab3b38cee2776dcb0a0661c5a01befd00 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Mon, 26 Nov 2018 09:19:17 +0800 Date: Mon, 26 Nov 2018 09:19:17 +0800
Subject: [PATCH 04/12] RH: use rpm optflags if present Subject: [PATCH] RH: use rpm optflags if present
Use the passed in optflags when compiling as an RPM, and keep the Use the passed in optflags when compiling as an RPM, and keep the
default flags as close as possible to the current fedora flags, while default flags as close as possible to the current fedora flags, while
@@ -16,15 +16,18 @@ Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Rebase to 0.9.8 Rebase to 0.9.8
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Changqing Li <changqing.li@windriver.com>
Rebase to 0.10.0
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
--- ---
Makefile.inc | 12 ++++++++++-- Makefile.inc | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-) 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc diff --git a/Makefile.inc b/Makefile.inc
index de89b21f..6ac632ff 100644 index 69521882..2127f208 100644
--- a/Makefile.inc --- a/Makefile.inc
+++ b/Makefile.inc +++ b/Makefile.inc
@@ -95,7 +95,15 @@ SYSTEMD_LIBDEPS := $(if $(SYSTEMD),$(if $(shell test $(SYSTEMD) -gt 209 && echo @@ -99,7 +99,15 @@ SYSTEMD_LIBDEPS := $(if $(SYSTEMD),$(if $(shell test $(SYSTEMD) -gt 209 && echo
MODPROBE_UNIT := $(shell test "0$(SYSTEMD)" -lt 245 2>/dev/null || \ MODPROBE_UNIT := $(shell test "0$(SYSTEMD)" -lt 245 2>/dev/null || \
echo "modprobe@dm_multipath.service") echo "modprobe@dm_multipath.service")
@@ -38,18 +41,18 @@ index de89b21f..6ac632ff 100644
+ -Werror=implicit-function-declaration -Wno-sign-compare \ + -Werror=implicit-function-declaration -Wno-sign-compare \
+ -Wno-unused-parameter -Werror=cast-qual \ + -Wno-unused-parameter -Werror=cast-qual \
+ -Werror=discarded-qualifiers + -Werror=discarded-qualifiers
WARNFLAGS := -Werror -Wall -Wextra -Wformat=2 $(WFORMATOVERFLOW) -Werror=implicit-int \
-Werror=implicit-function-declaration -Werror=format-security \ # Set WARN_ONLY=1 to avoid compilation erroring out due to warnings. Useful during development.
$(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS) $(W_URCU_TYPE_LIMITS) WARN_ONLY :=
@@ -105,7 +113,7 @@ CPPFLAGS := $(FORTIFY_OPT) $(CPPFLAGS) $(D_URCU_VERSION) \ @@ -115,7 +123,7 @@ CPPFLAGS := $(FORTIFY_OPT) $(CPPFLAGS) $(D_URCU_VERSION) \
-DRUNTIME_DIR=\"$(runtimedir)\" -DCONFIG_DIR=\"$(configdir)\" \ -DRUNTIME_DIR=\"$(runtimedir)\" -DCONFIG_DIR=\"$(TGTDIR)$(configdir)\" \
-DDEFAULT_CONFIGFILE=\"$(configfile)\" -DSTATE_DIR=\"$(statedir)\" \ -DDEFAULT_CONFIGFILE=\"$(TGTDIR)$(configfile)\" -DSTATE_DIR=\"$(TGTDIR)$(statedir)\" \
-DEXTRAVERSION=\"$(EXTRAVERSION)\" -MMD -MP -DEXTRAVERSION=\"$(EXTRAVERSION)\" -MMD -MP
-CFLAGS := -std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe -CFLAGS := -std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \
+CFLAGS := -std=gnu99 $(CFLAGS) $(OPTFLAGS) -pipe +CFLAGS := -std=gnu99 $(CFLAGS) $(OPTFLAGS) -pipe \
-fexceptions
BIN_CFLAGS := -fPIE -DPIE BIN_CFLAGS := -fPIE -DPIE
LIB_CFLAGS := -fPIC LIB_CFLAGS := -fPIC
SHARED_FLAGS := -shared
-- --
2.25.1 2.25.1
@@ -1,7 +1,7 @@
From 8f52504859704466667e042baf437c2b6272ffb9 Mon Sep 17 00:00:00 2001 From 30b85a61d665137ed1bca0d3e3d011c72758a192 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Mon, 26 Nov 2018 09:55:12 +0800 Date: Mon, 26 Nov 2018 09:55:12 +0800
Subject: [PATCH 05/12] RH: add mpathconf Subject: [PATCH] RH: add mpathconf
mpathconf is a program (largely based on lvmcomf) to help users mpathconf is a program (largely based on lvmcomf) to help users
configure /etc/multipath.conf and enable or disable multipathing. It configure /etc/multipath.conf and enable or disable multipathing. It
@@ -29,10 +29,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
create mode 100644 multipath/mpathconf.8 create mode 100644 multipath/mpathconf.8
diff --git a/libmultipath/config.c b/libmultipath/config.c diff --git a/libmultipath/config.c b/libmultipath/config.c
index 8a3a8f37..a40b41ab 100644 index 3fbfcc85..fbaaca8c 100644
--- a/libmultipath/config.c --- a/libmultipath/config.c
+++ b/libmultipath/config.c +++ b/libmultipath/config.c
@@ -962,6 +962,7 @@ int _init_config (const char *file, struct config *conf) @@ -962,6 +962,7 @@ int init_config__ (const char *file, struct config *conf)
validate_pctable(conf->overrides, 0, file); validate_pctable(conf->overrides, 0, file);
} else { } else {
condlog(0, "/etc/multipath.conf does not exist, blacklisting all devices."); condlog(0, "/etc/multipath.conf does not exist, blacklisting all devices.");
@@ -1,7 +1,7 @@
From f93248d8e3598ccdc42b6d639107917c9cda268c Mon Sep 17 00:00:00 2001 From bd65cdc704666dd4153779c74cdbb2cac6efea71 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Thu, 26 Sep 2019 16:29:48 +0800 Date: Thu, 26 Sep 2019 16:29:48 +0800
Subject: [PATCH 06/12] RH: add wwids from kernel cmdline mpath.wwids with -A Subject: [PATCH] RH: add wwids from kernel cmdline mpath.wwids with -A
This patch adds another option to multipath, "-A", which reads This patch adds another option to multipath, "-A", which reads
/proc/cmdline for mpath.wwid=<WWID> options, and adds any wwids it finds /proc/cmdline for mpath.wwid=<WWID> options, and adds any wwids it finds
@@ -27,7 +27,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
2 files changed, 45 insertions(+) 2 files changed, 45 insertions(+)
diff --git a/libmultipath/wwids.c b/libmultipath/wwids.c diff --git a/libmultipath/wwids.c b/libmultipath/wwids.c
index 591cd09b..b01f1b85 100644 index aac18c04..68f8e373 100644
--- a/libmultipath/wwids.c --- a/libmultipath/wwids.c
+++ b/libmultipath/wwids.c +++ b/libmultipath/wwids.c
@@ -439,3 +439,47 @@ int unmark_failed_wwid(const char *wwid) @@ -439,3 +439,47 @@ int unmark_failed_wwid(const char *wwid)
@@ -79,7 +79,7 @@ index 591cd09b..b01f1b85 100644
+ return ret; + return ret;
+} +}
diff --git a/libmultipath/wwids.h b/libmultipath/wwids.h diff --git a/libmultipath/wwids.h b/libmultipath/wwids.h
index 0c6ee54d..e32a0b0e 100644 index ee47ad9f..1ed0d85e 100644
--- a/libmultipath/wwids.h --- a/libmultipath/wwids.h
+++ b/libmultipath/wwids.h +++ b/libmultipath/wwids.h
@@ -17,6 +17,7 @@ int remember_wwid(char *wwid); @@ -17,6 +17,7 @@ int remember_wwid(char *wwid);
@@ -1,7 +1,7 @@
From 49d0b0279f54ceb96878e8e72e828efbb84a534c Mon Sep 17 00:00:00 2001 From 9f1075f82ecd39a9960f868eef890baf2ba36d4e Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Fri, 1 Mar 2024 11:45:10 +0800 Date: Fri, 1 Mar 2024 11:45:10 +0800
Subject: [PATCH 07/12] RH: warn on invalid regex instead of failing Subject: [PATCH] RH: warn on invalid regex instead of failing
multipath.conf used to allow "*" as a match everything regular expression, multipath.conf used to allow "*" as a match everything regular expression,
instead of requiring ".*". Instead of erroring when the old style instead of requiring ".*". Instead of erroring when the old style
@@ -23,7 +23,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
1 file changed, 34 insertions(+), 6 deletions(-) 1 file changed, 34 insertions(+), 6 deletions(-)
diff --git a/libmultipath/dict.c b/libmultipath/dict.c diff --git a/libmultipath/dict.c b/libmultipath/dict.c
index 5af036b7..e494419d 100644 index a06a6138..a734ba9b 100644
--- a/libmultipath/dict.c --- a/libmultipath/dict.c
+++ b/libmultipath/dict.c +++ b/libmultipath/dict.c
@@ -189,6 +189,34 @@ set_str_noslash(vector strvec, void *ptr, const char *file, int line_nr) @@ -189,6 +189,34 @@ set_str_noslash(vector strvec, void *ptr, const char *file, int line_nr)
@@ -61,7 +61,7 @@ index 5af036b7..e494419d 100644
static int static int
set_yes_no(vector strvec, void *ptr, const char *file, int line_nr) set_yes_no(vector strvec, void *ptr, const char *file, int line_nr)
{ {
@@ -1798,7 +1826,7 @@ ble_ ## option ## _handler (struct config *conf, vector strvec, \ @@ -1854,7 +1882,7 @@ ble_ ## option ## _handler (struct config *conf, vector strvec, \
if (!conf->option) \ if (!conf->option) \
return 1; \ return 1; \
\ \
@@ -70,7 +70,7 @@ index 5af036b7..e494419d 100644
if (!buff) \ if (!buff) \
return 1; \ return 1; \
\ \
@@ -1818,7 +1846,7 @@ ble_ ## option ## _ ## name ## _handler (struct config *conf, vector strvec, \ @@ -1874,7 +1902,7 @@ ble_ ## option ## _ ## name ## _handler (struct config *conf, vector strvec, \
if (!conf->option) \ if (!conf->option) \
return 1; \ return 1; \
\ \
@@ -79,7 +79,7 @@ index 5af036b7..e494419d 100644
if (!buff) \ if (!buff) \
return 1; \ return 1; \
\ \
@@ -1924,16 +1952,16 @@ device_handler(struct config *conf, vector strvec, const char *file, @@ -1980,16 +2008,16 @@ device_handler(struct config *conf, vector strvec, const char *file,
return 0; return 0;
} }
@@ -1,7 +1,7 @@
From fcba3e0d4c8448a2510025acb255c7335413bf56 Mon Sep 17 00:00:00 2001 From 87e19d273c46fe78933627fc4e8046e3a76da47a Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Mon, 26 Nov 2018 11:12:01 +0800 Date: Mon, 26 Nov 2018 11:12:01 +0800
Subject: [PATCH 08/12] RH: reset default find_mutipaths value to off Subject: [PATCH] RH: reset default find_mutipaths value to off
Upstream has changed to default find_multipaths to "strict". For now Upstream has changed to default find_multipaths to "strict". For now
Redhat will retain the previous default of "off". Redhat will retain the previous default of "off".
@@ -17,10 +17,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
index 64b633f2..a06a8a41 100644 index 02f7e57c..98dd66f7 100644
--- a/libmultipath/defaults.h --- a/libmultipath/defaults.h
+++ b/libmultipath/defaults.h +++ b/libmultipath/defaults.h
@@ -23,7 +23,7 @@ @@ -24,7 +24,7 @@
#define DEFAULT_NO_PATH_RETRY NO_PATH_RETRY_UNDEF #define DEFAULT_NO_PATH_RETRY NO_PATH_RETRY_UNDEF
#define DEFAULT_VERBOSITY 2 #define DEFAULT_VERBOSITY 2
#define DEFAULT_REASSIGN_MAPS 0 #define DEFAULT_REASSIGN_MAPS 0
@@ -1,7 +1,7 @@
From 7452549e572b1c40aefe25524bf4bbbf34c952e5 Mon Sep 17 00:00:00 2001 From c22c897e7c55fc0b8c5bdd113a0357654ee895ae Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Tue, 4 Jun 2019 11:39:39 +0800 Date: Tue, 4 Jun 2019 11:39:39 +0800
Subject: [PATCH 09/12] multipath-tools: modify create-config.mk for Subject: [PATCH] multipath-tools: modify create-config.mk for
cross-compilation cross-compilation
Do not look for systemd info on the host, and allow us to pass in CFLAGS Do not look for systemd info on the host, and allow us to pass in CFLAGS
@@ -21,7 +21,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
1 file changed, 4 deletions(-) 1 file changed, 4 deletions(-)
diff --git a/create-config.mk b/create-config.mk diff --git a/create-config.mk b/create-config.mk
index 4d318b96..a65975ba 100644 index 8bd2c20c..40d2446a 100644
--- a/create-config.mk --- a/create-config.mk
+++ b/create-config.mk +++ b/create-config.mk
@@ -127,10 +127,6 @@ ifeq ($(ENABLE_DMEVENTS_POLL),0) @@ -127,10 +127,6 @@ ifeq ($(ENABLE_DMEVENTS_POLL),0)
@@ -1,7 +1,7 @@
From 5d2fa3c5975266a6c02214afa6254e6eeeb1baad Mon Sep 17 00:00:00 2001 From c34c65a3f5ddec22cb417872f90c2c9540a1847b Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com> From: Changqing Li <changqing.li@windriver.com>
Date: Mon, 26 Nov 2018 11:17:41 +0800 Date: Mon, 26 Nov 2018 11:17:41 +0800
Subject: [PATCH 10/12] Subject: [PATCH] Always use devmapper Subject: [PATCH] Always use devmapper
Do not try to compute several _API_ make variables Do not try to compute several _API_ make variables
from host information when cross-compiling. from host information when cross-compiling.
@@ -21,7 +21,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
1 file changed, 8 insertions(+), 28 deletions(-) 1 file changed, 8 insertions(+), 28 deletions(-)
diff --git a/create-config.mk b/create-config.mk diff --git a/create-config.mk b/create-config.mk
index a65975ba..8ba592f4 100644 index 40d2446a..f5eb2803 100644
--- a/create-config.mk --- a/create-config.mk
+++ b/create-config.mk +++ b/create-config.mk
@@ -79,34 +79,14 @@ URCU_VERSION = $(shell \ @@ -79,34 +79,14 @@ URCU_VERSION = $(shell \
@@ -1,7 +1,7 @@
From 949070286692dfff89213792571da233fe82e440 Mon Sep 17 00:00:00 2001 From 698361847e6fae321bc277a5fc518b2bd55751b8 Mon Sep 17 00:00:00 2001
From: Wang Mingyu <wangmy@cn.fujitsu.com> From: Wang Mingyu <wangmy@cn.fujitsu.com>
Date: Sun, 10 May 2020 21:22:53 +0800 Date: Sun, 10 May 2020 21:22:53 +0800
Subject: [PATCH 11/12] fix bug of do_compile and do_install Subject: [PATCH] fix bug of do_compile and do_install
when multiple processes make run in parallel, when multiple processes make run in parallel,
because of dependency error will occur. because of dependency error will occur.
@@ -18,10 +18,10 @@ Upstream-Status: Pending
1 file changed, 10 insertions(+) 1 file changed, 10 insertions(+)
diff --git a/Makefile b/Makefile diff --git a/Makefile b/Makefile
index 4df5f161..065249c2 100644 index f06f7faa..690dc050 100644
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -91,6 +91,16 @@ libmpathpersist libmpathvalid multipath multipathd: libmultipath @@ -94,6 +94,16 @@ libmpathpersist libmpathvalid multipath multipathd: libmultipath
libmultipath/prioritizers libmultipath/checkers libmultipath/foreign: libmultipath libmultipath/prioritizers libmultipath/checkers libmultipath/foreign: libmultipath
mpathpersist multipathd: libmpathpersist mpathpersist multipathd: libmpathpersist
@@ -1,7 +1,7 @@
From 7a46f43682641436464579d8bf76c382e71ea557 Mon Sep 17 00:00:00 2001 From 69ee17207574ca032c3cb46a3db99736de3eedf8 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com> From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Mon, 25 May 2020 23:22:55 -0700 Date: Mon, 25 May 2020 23:22:55 -0700
Subject: [PATCH 12/12] add explicit dependency on libraries Subject: [PATCH] add explicit dependency on libraries
[snip] [snip]
gcc/i686-overc-linux/10.1.0/ld: cannot find -lmpathpersist gcc/i686-overc-linux/10.1.0/ld: cannot find -lmpathpersist
@@ -24,10 +24,10 @@ Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
1 file changed, 1 insertion(+) 1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile diff --git a/Makefile b/Makefile
index 065249c2..0444c2ea 100644 index 690dc050..b775f949 100644
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -90,6 +90,7 @@ libmultipath: libmpathutil @@ -93,6 +93,7 @@ libmultipath: libmpathutil
libmpathpersist libmpathvalid multipath multipathd: libmultipath libmpathpersist libmpathvalid multipath multipathd: libmultipath
libmultipath/prioritizers libmultipath/checkers libmultipath/foreign: libmultipath libmultipath/prioritizers libmultipath/checkers libmultipath/foreign: libmultipath
mpathpersist multipathd: libmpathpersist mpathpersist multipathd: libmpathpersist
View File
@@ -41,15 +41,14 @@ SRC_URI = "git://github.com/opensvc/multipath-tools.git;protocol=https;branch=ma
file://0007-RH-warn-on-invalid-regex-instead-of-failing.patch \ file://0007-RH-warn-on-invalid-regex-instead-of-failing.patch \
file://0008-RH-reset-default-find_mutipaths-value-to-off.patch \ file://0008-RH-reset-default-find_mutipaths-value-to-off.patch \
file://0009-multipath-tools-modify-create-config.mk-for-cross-co.patch \ file://0009-multipath-tools-modify-create-config.mk-for-cross-co.patch \
file://0010-Subject-PATCH-Always-use-devmapper.patch \ file://0010-Always-use-devmapper.patch \
file://0011-fix-bug-of-do_compile-and-do_install.patch \ file://0011-fix-bug-of-do_compile-and-do_install.patch \
file://0012-add-explicit-dependency-on-libraries.patch \ file://0012-add-explicit-dependency-on-libraries.patch \
file://0001-libmultipath-always-use-glibc-basename.patch \
" "
LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
SRCREV = "3daacfdfd110b24a3a7d5a276dcf8512b7039199" SRCREV = "ee3a70175a8a9045e5c309d5392300922e2a0625"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"