Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
multipath-tools
11-dm-mpath.rules-Fix-udev-rule-processing-duri...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 11-dm-mpath.rules-Fix-udev-rule-processing-during-co.patch of Package multipath-tools
From 383c003aee4072e7636e211c51ee9f214e72991b Mon Sep 17 00:00:00 2001 From: Martin Wilck <mwilck@suse.com> Date: Fri, 29 May 2020 23:33:37 +0200 Subject: [PATCH] 11-dm-mpath.rules: Fix udev rule processing during coldplug DM_SUBSYSTEM_UDEV_FLAG0 is used to indicate that upper layer udev rules don't need to be processed for multipath maps, e.g. for map reloads. However, this can fail if maps were created during initrd processing, but udev processing for the change events of these maps didn't complete because udevd was killed to switch root. So, in the coldplug case, play safe and process the rules once more. Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Martin Wilck <mwilck@suse.com> --- multipath/11-dm-mpath.rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/multipath/11-dm-mpath.rules b/multipath/11-dm-mpath.rules index 07320a1..98d94f9 100644 --- a/multipath/11-dm-mpath.rules +++ b/multipath/11-dm-mpath.rules @@ -52,8 +52,13 @@ LABEL="mpath_action" # something that should be reacted upon since it would be useless extra work. # It's exactly mpath's job to provide *seamless* device access to any of the # paths that are available underneath. +# Exception: On cold-plug, if the map had already been set up before, +# do process upper layers, because rule processing may not necessarily have +# completed during initrd processing. +ACTION=="add", ENV{.MPATH_DEVICE_READY_OLD}=="1", GOTO="process_reload" ENV{DM_SUBSYSTEM_UDEV_FLAG0}=="1", \ ENV{DM_ACTIVATION}="0", ENV{MPATH_UNCHANGED}="1" +LABEL="process_reload" # For path failed or reinstated events, unset DM_ACTIVATION. # This is similar to the DM_SUBSYSTEM_UDEV_FLAG0 case above. -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor