From 014f35fc07bcd3699f46cf5b5f2093b3d36bd522 Mon Sep 17 00:00:00 2001 From: Xiao Ni Date: Wed, 13 Aug 2025 23:12:45 -0400 Subject: [PATCH] Don't submit stop ioctl in assemble The kernel commit 9e59d609763f ('md: call del_gendisk in control path') breaks mdadm --assemble command. mdadm pr https://github.com/md-raid-utilities/mdadm/pull/182 fixes this problem. Resolves: bz#2388455 Signed-off-by: Xiao Ni --- 0002-dont-stop-in-assemble.patch | 11 +++++++++++ mdadm.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 0002-dont-stop-in-assemble.patch diff --git a/0002-dont-stop-in-assemble.patch b/0002-dont-stop-in-assemble.patch new file mode 100644 index 0000000..6eaf564 --- /dev/null +++ b/0002-dont-stop-in-assemble.patch @@ -0,0 +1,11 @@ +--- a/Assemble.c~ 2025-08-13 22:05:00.416132027 -0400 ++++ b/Assemble.c 2025-08-13 22:13:16.650837070 -0400 +@@ -1597,8 +1597,6 @@ + goto try_again; + goto out; + } +- /* just incase it was started but has no content */ +- ioctl(mdfd, STOP_ARRAY, NULL); + } + + if (content != &info) { diff --git a/mdadm.spec b/mdadm.spec index f942712..57085ce 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -2,7 +2,7 @@ Name: mdadm Version: 4.3 -Release: 7%{?dist} +Release: 8%{?dist} Summary: The mdadm program controls Linux md devices (software RAID arrays) URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ License: GPL-2.0-or-later @@ -26,6 +26,7 @@ Source11: https://git.kernel.org/pub/scm/docs/kernel/pgpkeys.git/plain/keys/6 # this is a reversion of the initial 'posix check' patch # that causes all the trouble Patch: 0001-Revert-mdadm-Follow-POSIX-Portable-Character-Set.patch +Patch: 0002-dont-stop-in-assemble.patch # Fedora customization patches Patch: mdadm-udev.patch @@ -132,6 +133,10 @@ install -Dm644 raid6check.man %{buildroot}/%{_mandir}/man8/raid6check.man %changelog +* Thu Aug 14 2025 Xiao Ni - 4.3-8 +- Don't submit stop ioctl command in assemble +- Resolves bz#2388455 + * Sun Apr 06 2025 Adam Williamson - 4.3-7 - revert 'posix' name check to fix rhbz#2325906