dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0070-udev-Ignore-change-event-for-imsm.patch

8e8941
From e1b92ee0de26576a33b20c9dd6ef6bd8cab8e283 Mon Sep 17 00:00:00 2001
8e8941
From: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
8e8941
Date: Wed, 8 Apr 2020 16:44:52 +0200
8e8941
Subject: [RHEL7.9 PATCH 70/77] udev: Ignore change event for imsm
8e8941
8e8941
When adding a device to a container mdadm has to close its file
8e8941
descriptor before sysfs_add_disk(). This generates change event.
8e8941
There is race possibility because metadata is already written and other
8e8941
-I process can place drive differently. As a result device can be added
8e8941
to two containers simultaneously.
8e8941
From IMSM perspective there is no need to react for change event. IMSM
8e8941
doesn't support stacked devices.
8e8941
8e8941
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
8e8941
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
8e8941
---
8e8941
 udev-md-raid-assembly.rules | 2 +-
8e8941
 1 file changed, 1 insertion(+), 1 deletion(-)
8e8941
8e8941
diff --git a/udev-md-raid-assembly.rules b/udev-md-raid-assembly.rules
8e8941
index 9f055ed..d668cdd 100644
8e8941
--- a/udev-md-raid-assembly.rules
8e8941
+++ b/udev-md-raid-assembly.rules
8e8941
@@ -23,7 +23,7 @@ IMPORT{cmdline}="nodmraid"
8e8941
 ENV{nodmraid}=="?*", GOTO="md_inc_end"
8e8941
 ENV{ID_FS_TYPE}=="ddf_raid_member", GOTO="md_inc"
8e8941
 ENV{noiswmd}=="?*", GOTO="md_inc_end"
8e8941
-ENV{ID_FS_TYPE}=="isw_raid_member", GOTO="md_inc"
8e8941
+ENV{ID_FS_TYPE}=="isw_raid_member", ACTION!="change", GOTO="md_inc"
8e8941
 GOTO="md_inc_end"
8e8941
 
8e8941
 LABEL="md_inc"
8e8941
-- 
8e8941
2.7.5
8e8941