]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm: Increase number limit in md device name to 1024.
authorShminderjit Singh <shminderjit.singh@oracle.com>
Mon, 26 Aug 2024 10:06:50 +0000 (10:06 +0000)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 4 Sep 2024 07:30:43 +0000 (09:30 +0200)
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 <shminderjit.singh@oracle.com>
util.c

diff --git a/util.c b/util.c
index 1cee0febabcb97b1770a77186fc66983a028d858..2fc0e9f8fc3a872dfcaf2fe21ee187a959689afb 100644 (file)
--- 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;