summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch')
-rw-r--r--meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch19
1 files changed, 8 insertions, 11 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch b/meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch
index 54b3bdc863..649f1fa778 100644
--- a/meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch
+++ b/meta-oe/recipes-support/multipath-tools/files/0003-RH-don-t-start-without-a-config-file.patch
@@ -1,7 +1,7 @@
1From de8ee3480ec7479ed014c197a9d747403f6e0237 Mon Sep 17 00:00:00 2001 1From 2fe1037b8198bd00961d8df48e684296758127d1 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 23 Nov 2018 17:25:15 +0800 3Date: Fri, 23 Nov 2018 17:25:15 +0800
4Subject: [PATCH 03/12] RH: don't start without a config file 4Subject: [PATCH] RH: don't start without a config file
5 5
6If /etc/multipath.conf doesn't exist, don't start multipathd and blacklist 6If /etc/multipath.conf doesn't exist, don't start multipathd and blacklist
7all devices when running multipath. A completely blank configuration file 7all devices when running multipath. A completely blank configuration file
@@ -28,7 +28,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
28 5 files changed, 23 insertions(+) 28 5 files changed, 23 insertions(+)
29 29
30diff --git a/libmultipath/config.c b/libmultipath/config.c 30diff --git a/libmultipath/config.c b/libmultipath/config.c
31index 83fa7369..8a3a8f37 100644 31index 8b424d18..d8fafa1f 100644
32--- a/libmultipath/config.c 32--- a/libmultipath/config.c
33+++ b/libmultipath/config.c 33+++ b/libmultipath/config.c
34@@ -26,6 +26,7 @@ 34@@ -26,6 +26,7 @@
@@ -39,7 +39,7 @@ index 83fa7369..8a3a8f37 100644
39 39
40 /* 40 /*
41 * We don't support re-initialization after 41 * We don't support re-initialization after
42@@ -959,6 +960,23 @@ int _init_config (const char *file, struct config *conf) 42@@ -937,6 +938,23 @@ int init_config__ (const char *file, struct config *conf)
43 } 43 }
44 factorize_hwtable(conf->hwtable, builtin_hwtable_size, file); 44 factorize_hwtable(conf->hwtable, builtin_hwtable_size, file);
45 validate_pctable(conf->overrides, 0, file); 45 validate_pctable(conf->overrides, 0, file);
@@ -64,7 +64,7 @@ index 83fa7369..8a3a8f37 100644
64 64
65 conf->processed_main_config = 1; 65 conf->processed_main_config = 1;
66diff --git a/libmultipath/config.h b/libmultipath/config.h 66diff --git a/libmultipath/config.h b/libmultipath/config.h
67index 384193ab..158cebf0 100644 67index 5b4ebf8c..2302eacc 100644
68--- a/libmultipath/config.h 68--- a/libmultipath/config.h
69+++ b/libmultipath/config.h 69+++ b/libmultipath/config.h
70@@ -10,6 +10,7 @@ 70@@ -10,6 +10,7 @@
@@ -76,7 +76,7 @@ index 384193ab..158cebf0 100644
76 enum devtypes { 76 enum devtypes {
77 DEV_NONE, 77 DEV_NONE,
78diff --git a/multipath/multipath.rules.in b/multipath/multipath.rules.in 78diff --git a/multipath/multipath.rules.in b/multipath/multipath.rules.in
79index 780bf852..2c518378 100644 79index 2ac1972f..cc248231 100644
80--- a/multipath/multipath.rules.in 80--- a/multipath/multipath.rules.in
81+++ b/multipath/multipath.rules.in 81+++ b/multipath/multipath.rules.in
82@@ -9,6 +9,7 @@ IMPORT{cmdline}="nompath" 82@@ -9,6 +9,7 @@ IMPORT{cmdline}="nompath"
@@ -88,7 +88,7 @@ index 780bf852..2c518378 100644
88 ENV{DEVTYPE}!="partition", GOTO="test_dev" 88 ENV{DEVTYPE}!="partition", GOTO="test_dev"
89 IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH" 89 IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH"
90diff --git a/multipathd/multipathd.8.in b/multipathd/multipathd.8.in 90diff --git a/multipathd/multipathd.8.in b/multipathd/multipathd.8.in
91index f1cab3ff..5ae21db1 100644 91index 7bc8806e..315884eb 100644
92--- a/multipathd/multipathd.8.in 92--- a/multipathd/multipathd.8.in
93+++ b/multipathd/multipathd.8.in 93+++ b/multipathd/multipathd.8.in
94@@ -49,6 +49,8 @@ map regains its maximum performance and redundancy. 94@@ -49,6 +49,8 @@ map regains its maximum performance and redundancy.
@@ -101,7 +101,7 @@ index f1cab3ff..5ae21db1 100644
101 . 101 .
102 .\" ---------------------------------------------------------------------------- 102 .\" ----------------------------------------------------------------------------
103diff --git a/multipathd/multipathd.service.in b/multipathd/multipathd.service.in 103diff --git a/multipathd/multipathd.service.in b/multipathd/multipathd.service.in
104index 6d03ff71..0cd85102 100644 104index b6a25b31..f78bb91b 100644
105--- a/multipathd/multipathd.service.in 105--- a/multipathd/multipathd.service.in
106+++ b/multipathd/multipathd.service.in 106+++ b/multipathd/multipathd.service.in
107@@ -5,6 +5,7 @@ Before=local-fs-pre.target blk-availability.service shutdown.target 107@@ -5,6 +5,7 @@ Before=local-fs-pre.target blk-availability.service shutdown.target
@@ -112,6 +112,3 @@ index 6d03ff71..0cd85102 100644
112 Before=initrd-cleanup.service 112 Before=initrd-cleanup.service
113 DefaultDependencies=no 113 DefaultDependencies=no
114 Conflicts=shutdown.target 114 Conflicts=shutdown.target
115--
1162.25.1
117