]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Raid limit of 1024 when scanning for devices.
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index 686d4b489e7645bb25f60a3b3ed08eeb0165f40a..71cef38f61448996ef91c1da203a0f2bf2dbc142 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -1388,4 +1388,12 @@ static inline int xasprintf(char **strp, const char *fmt, ...) {
 #define PROCESS_DELAYED -2
 #define PROCESS_PENDING -3
 
+/* When using "GET_DISK_INFO" it isn't certain how high
+ * we need to check.  So we impose an absolute limit of
+ * MAX_DISKS.  This needs to be much more than the largest
+ * number of devices any metadata can support.  Currently
+ * v1.x can support 1920
+ */
+#define MAX_DISKS      4096
+
 extern int __offroot;