summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-07 23:03:46 +0000
committerNeil Brown <neilb@suse.de>2005-06-07 23:03:46 +0000
commitea32955930cc63d2fa445ff00437f5f767f7a4af (patch)
tree2778cbed10cdee740eea76dde1ab2f18f2ee6a09 /super0.c
parent8d75b7fce26fd0c41e53e9d9000ebbf969fd5fee (diff)
downloadmdadm-ea32955930cc63d2fa445ff00437f5f767f7a4af.tar.gz
mdadm-ea32955930cc63d2fa445ff00437f5f767f7a4af.tar.xz
mdadm-ea32955930cc63d2fa445ff00437f5f767f7a4af.zip
Increase max-devs on type-1 superblocks
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/super0.c b/super0.c
index a2e7700..1c2bb5e 100644
--- a/super0.c
+++ b/super0.c
@@ -589,6 +589,7 @@ static int load_super0(struct supertype *st, int fd, void **sbp, char *devname)
if (st->ss == NULL) {
st->ss = &super0;
st->minor_version = 90;
+ st->max_devs = MD_SB_DISKS;
}
return 0;
@@ -601,6 +602,7 @@ static struct supertype *match_metadata_desc0(char *arg)
st->ss = &super0;
st->minor_version = 90;
+ st->max_devs = MD_SB_DISKS;
if (strcmp(arg, "0") == 0 ||
strcmp(arg, "0.90") == 0 ||
strcmp(arg, "default") == 0