From d5146fa1c9ac362b2e06b331600cf7acc99722ad Mon Sep 17 00:00:00 2001 From: Xiao Ni Date: Mon, 5 Sep 2022 08:45:54 +0800 Subject: [PATCH] Add ddf auto-assemble in udev rule Resolves: rhbz#2120690 Signed-off-by: Xiao Ni --- mdadm.rules | 2 ++ mdadm.spec | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mdadm.rules b/mdadm.rules index 682e9e8..74646b3 100644 --- a/mdadm.rules +++ b/mdadm.rules @@ -42,6 +42,8 @@ ENV{noiswmd}=="?*", GOTO="md_imsm_inc_end" ENV{nodmraid}=="?*", GOTO="md_imsm_inc_end" SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="isw_raid_member", \ RUN+="/sbin/mdadm -I $env{DEVNAME}" +SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="ddf_raid_member", \ + RUN+="/sbin/mdadm -I $env{DEVNAME}" SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}=="?*", \ ENV{ID_FS_TYPE}=="isw_raid_member", \ RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}" diff --git a/mdadm.spec b/mdadm.spec index edc3e19..53140f9 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,7 +1,7 @@ Name: mdadm Version: 4.2 # extraversion is used to define rhel internal version -%define extraversion 5 +%define extraversion 6 Release: %{extraversion}%{?dist} Summary: The mdadm program controls Linux md devices (software RAID arrays) URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ @@ -143,6 +143,10 @@ install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d /etc/libreport/events.d/* %changelog +* Mon Sep 5 2022 Xiao Ni - 4.2-6 +- Add ddf auto-assemble in mdadm udev rule +- Resolves rhbz#2120690 + * Thu Aug 25 2022 Xiao Ni - 4.2-5 - Update to latest upstream - Resolves rhbz#2092330