From 37dfca9f499a73b87bccb00ea7dc55cba431e224 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 25 2022 05:25:31 +0000 Subject: import mdadm-4.2-2.el8 --- diff --git a/SOURCES/0001-Revert-mdadm-fix-coredump-of-mdadm-monitor-r.patch b/SOURCES/0001-Revert-mdadm-fix-coredump-of-mdadm-monitor-r.patch new file mode 100644 index 0000000..08b6900 --- /dev/null +++ b/SOURCES/0001-Revert-mdadm-fix-coredump-of-mdadm-monitor-r.patch @@ -0,0 +1,38 @@ +From 7e92ef334af165a5e50b33ddff98e18f1c8a18d0 Mon Sep 17 00:00:00 2001 +From: Xiao Ni +Date: Thu, 24 Feb 2022 11:37:34 +0800 +Subject: [PATCH 1/1] Revert "mdadm: fix coredump of mdadm --monitor -r" + +This reverts commit 546047688e1c64638f462147c755b58119cabdc8. + +This is a rhel ony patch. We have sent patch to upstream. But +it hasn't been merged. We will remove this patch once upstream +merges our patch. + +Signed-off-by: Xiao Ni +--- + ReadMe.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/ReadMe.c b/ReadMe.c +index 81399765..ee457a54 100644 +--- a/ReadMe.c ++++ b/ReadMe.c +@@ -81,11 +81,11 @@ char Version[] = "mdadm - v" VERSION " - " VERS_DATE EXTRAVERSION "\n"; + * found, it is started. + */ + +-char short_options[]="-ABCDEFGIQhVXYWZ:vqbc:i:l:p:m:r:n:x:u:c:d:z:U:N:safRSow1tye:k"; ++char short_options[]="-ABCDEFGIQhVXYWZ:vqbc:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:k:"; + char short_bitmap_options[]= +- "-ABCDEFGIQhVXYWZ:vqb:c:i:l:p:m:r:n:x:u:c:d:z:U:N:sarfRSow1tye:k:"; ++ "-ABCDEFGIQhVXYWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:k:"; + char short_bitmap_auto_options[]= +- "-ABCDEFGIQhVXYWZ:vqb:c:i:l:p:m:r:n:x:u:c:d:z:U:N:sa:rfRSow1tye:k:"; ++ "-ABCDEFGIQhVXYWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sa:rfRSow1tye:k:"; + + struct option long_options[] = { + {"manage", 0, 0, ManageOpt}, +-- +2.31.1 + diff --git a/SPECS/mdadm.spec b/SPECS/mdadm.spec index 629b994..cf23fc5 100644 --- a/SPECS/mdadm.spec +++ b/SPECS/mdadm.spec @@ -2,7 +2,7 @@ Summary: The mdadm program controls Linux md devices (software RAID arrays) Name: mdadm Version: 4.2 # extraversion is used to define rhel internal version -%define extraversion 1 +%define extraversion 2 Release: %{extraversion}%{?dist} Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}%{?subversion:-%{subversion}}.tar.xz Source1: mdmonitor.init @@ -17,6 +17,7 @@ Source9: mdcheck Source10: mdadm_env.sh Patch000: disable-Werror.patch +Patch001: 0001-Revert-mdadm-fix-coredump-of-mdadm-monitor-r.patch # RHEL customization patches Patch200: mdadm-3.3-udev.patch @@ -48,6 +49,7 @@ file can be used to help with some common tasks. %setup -q -n %{name}-%{version}%{?subversion:_%{subversion}} %patch000 -p1 -b .disable +%patch001 -p1 -b .0001 # RHEL customization patches %patch200 -p1 -b .udev @@ -119,6 +121,10 @@ rm -rf %{buildroot} /usr/lib/mdadm/mdadm_env.sh %changelog +* Thu Feb 24 2022 Xiao Ni - 4.2-2 +- mdadm re-add fault/removed disk failed +- Resolves rhbz#2046323 + * Fri Feb 18 2022 Xiao Ni - 4.2 - Update to 4.2 - Resolves rhbz#2034809