summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-04-17 23:42:52 +0000
committerNeil Brown <neilb@suse.de>2006-04-17 23:42:52 +0000
commit6fbba4c9295a1df735565d1cf0e376d15c2c2809 (patch)
treea46fc8f0b970881cf50c2a3e1fbbc3bbdae1a742 /util.c
parent40842ca2949950b6b0ca91c9559fa2145d390295 (diff)
downloadmdadm-6fbba4c9295a1df735565d1cf0e376d15c2c2809.tar.gz
mdadm-6fbba4c9295a1df735565d1cf0e376d15c2c2809.tar.xz
mdadm-6fbba4c9295a1df735565d1cf0e376d15c2c2809.zip
Stuff
Description... Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
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;
}