summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorShminderjit Singh <shminderjit.singh@oracle.com>2024-08-26 12:06:50 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-09-04 09:30:43 +0200
commitf786072a3e2928766a9b4f1b7d3372a601c259ea (patch)
treed080b36fde4b53f58bb265453ff5799f1315f2ec /util.c
parentimsm: add IMSM_OROM_CAPABILITIES_TPV to nvme orom (diff)
downloadmdadm-f786072a3e2928766a9b4f1b7d3372a601c259ea.tar.xz
mdadm-f786072a3e2928766a9b4f1b7d3372a601c259ea.zip
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 <shminderjit.singh@oracle.com>
Diffstat (limited to '')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
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;