From fa57a60e178b81628a33d93797ed6bf03b2c3567 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 12:14:40 +0000 Subject: Apply patch 0003-libmultipath-allow-force-reload-with-no-active-paths.patch patch_name: 0003-libmultipath-allow-force-reload-with-no-active-paths.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/libmultipath/configure.c b/libmultipath/configure.c index c95848a..96c7961 100644 --- a/libmultipath/configure.c +++ b/libmultipath/configure.c @@ -710,12 +710,6 @@ select_action (struct multipath * mpp, vector curmp, int force_reload) return; } - if (pathcount(mpp, PATH_UP) == 0) { - mpp->action = ACT_IMPOSSIBLE; - condlog(3, "%s: set ACT_IMPOSSIBLE (no usable path)", - mpp->alias); - return; - } if (force_reload) { mpp->force_udev_reload = 1; mpp->action = ACT_RELOAD; diff --git a/multipath/11-dm-mpath.rules b/multipath/11-dm-mpath.rules index 07320a1..cd522e8 100644 --- a/multipath/11-dm-mpath.rules +++ b/multipath/11-dm-mpath.rules @@ -75,7 +75,7 @@ ENV{MPATH_DEVICE_READY}=="0", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" ENV{MPATH_DEVICE_READY}!="0", ENV{.MPATH_DEVICE_READY_OLD}=="0",\ ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="$env{DM_DISABLE_OTHER_RULES_FLAG_OLD}",\ ENV{DM_DISABLE_OTHER_RULES_FLAG_OLD}="",\ - ENV{DM_ACTIVATION}="1" + ENV{DM_ACTIVATION}="1", ENV{MPATH_UNCHANGED}="0" # The code to check multipath state ends here. We need to set # properties and symlinks regardless whether the map is usable or