From fc2939a0834bbf95332d5437c9908cc32c78c4b0 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 05 2022 11:08:08 +0000 Subject: import mdadm-4.2-2.el9 --- 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 40e97c6..14f63f6 100644 --- a/SPECS/mdadm.spec +++ b/SPECS/mdadm.spec @@ -1,10 +1,8 @@ Name: mdadm Version: 4.2 -Release: 1%{?dist} -# If Release is not same with subversion, please define extraversion -# For example, release is rc3-1, subversion is rc3. -# extraversion should be rc3-1. This is used in Readme.c -%define extraversion 1 +# extraversion is used to define rhel internal version +%define extraversion 2 +Release: %{extraversion}%{?dist} Summary: The mdadm program controls Linux md devices (software RAID arrays) URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ License: GPLv2+ @@ -21,6 +19,7 @@ Source8: raid-check.service # Build without -Werror. Patch00: disable-Werror.patch +Patch01: 0001-Revert-mdadm-fix-coredump-of-mdadm-monitor-r.patch # Fedora customization patches Patch97: mdadm-3.3-udev.patch @@ -94,6 +93,10 @@ install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d /etc/libreport/events.d/* %changelog +* Thu Feb 24 2022 Xiao Ni - 4.2-2 +- mdadm re-add fault/removed disk failed +- Resolves rhbz#2047567 + * Fri Dec 31 2021 Xiao Ni - 4.2 - Update to upstream 4.2 - Resolves rhbz#2026723, rhbz#2026532, rhbz#1995587