summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/util.c b/util.c
index 04a689b..05362c7 100644
--- a/util.c
+++ b/util.c
@@ -537,11 +537,15 @@ struct supertype *super_by_version(int vers, int minor)
{
struct supertype *st = malloc(sizeof(*st));
if (!st) return st;
- if (vers == 0)
+ if (vers == 0) {
st->ss = &super0;
+ st->max_devs = MD_SB_DISKS;
+ }
- if (vers == 1)
+ if (vers == 1) {
st->ss = &super1;
+ st->max_devs = 384;
+ }
st->minor_version = minor;
return st;
}