diff --git a/0172-mdadm-Increase-number-limit-in-md-device-name-to-102.patch b/0172-mdadm-Increase-number-limit-in-md-device-name-to-102.patch new file mode 100644 index 0000000..9857686 --- /dev/null +++ b/0172-mdadm-Increase-number-limit-in-md-device-name-to-102.patch @@ -0,0 +1,32 @@ +From f786072a3e2928766a9b4f1b7d3372a601c259ea Mon Sep 17 00:00:00 2001 +From: Shminderjit Singh +Date: Mon, 26 Aug 2024 10:06:50 +0000 +Subject: [PATCH 1/1] mdadm: Increase number limit in md device name to 1024. + +Updated the maximum device number in md device names from 127 to 1024. +The previous limit was causing issues in the automation framework. +This change ensures backward compatibility and allows for future +scalability. + +Fixes: 25aa7329141c ("mdadm: numbered names verification") +Signed-off-by: Shminderjit Singh +--- + util.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util.c b/util.c +index 1cee0feb..2fc0e9f8 100644 +--- a/util.c ++++ b/util.c +@@ -1003,7 +1003,7 @@ static bool is_devname_numbered(const char *devname, const char *pref, const int + if (parse_num(&val, devname + pref_len) != 0) + return false; + +- if (val > 127) ++ if (val > 1024) + return false; + + return true; +-- +2.48.1 + diff --git a/mdadm.spec b/mdadm.spec index 377eca2..fee8589 100644 --- a/mdadm.spec +++ b/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 17 +%define extraversion 18 Release: %{extraversion}%{?dist} Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}%{?subversion:-%{subversion}}.tar.xz Source1: mdmonitor.init @@ -185,6 +185,7 @@ Patch167: 0168-super1-remove-support-for-name-in-config.patch Patch168: 0169-Mdmonitor-Improve-udev-event-handling.patch Patch169: 0170-udev-Move-udev_block-and-udev_unblock-into-udev.c.patch Patch170: 0171-mdadm-enable-sync-file-for-udev-rules.patch +Patch171: 0172-mdadm-Increase-number-limit-in-md-device-name-to-102.patch # RHEL customization patches Patch200: mdadm-udev.patch @@ -279,6 +280,10 @@ rm -rf %{buildroot} /usr/share/mdadm/mdcheck %changelog +* Thu Jul 10 2025 John Pittman - 4.2-18 +- increase md device name number limit +- Resolves: RHEL-97802 + * Thu Jun 5 2025 Xiao Ni - 4.2-17 - enable sync file for udev rules - Resolves: RHEL-59180