diff options
author | Neil Brown <neilb@suse.de> | 2006-04-17 23:42:52 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-04-17 23:42:52 +0000 |
commit | 6fbba4c9295a1df735565d1cf0e376d15c2c2809 (patch) | |
tree | a46fc8f0b970881cf50c2a3e1fbbc3bbdae1a742 /util.c | |
parent | 40842ca2949950b6b0ca91c9559fa2145d390295 (diff) | |
download | mdadm-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; } |