Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Xiao Ni
014f35fc07 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 <xni@redhat.com>
2025-08-13 23:12:45 -04:00
2 changed files with 17 additions and 1 deletions

View file

@ -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) {

View file

@ -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 <xni@redhat.com> - 4.3-8
- Don't submit stop ioctl command in assemble
- Resolves bz#2388455
* Sun Apr 06 2025 Adam Williamson <awilliam@redhat.com> - 4.3-7
- revert 'posix' name check to fix rhbz#2325906