From: Shminderjit Singh Date: Mon, 26 Aug 2024 10:06:50 +0000 (+0000) Subject: mdadm: Increase number limit in md device name to 1024. X-Git-Tag: mdadm-4.4~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f786072a3e2928766a9b4f1b7d3372a601c259ea;p=thirdparty%2Fmdadm.git 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 --- 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;