summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-02-24 12:03:27 +1100
committerNeilBrown <neilb@suse.de>2010-02-24 12:03:27 +1100
commitad90adb689e3581432d71d995c9a8f0f6d31beb7 (patch)
tree5e3bf240bd393d569cf63c3da9d8ddd4d0e4c6b2 /super1.c
parent097075b6111f46f87207b02bc3819280c39180f0 (diff)
downloadmdadm-ad90adb689e3581432d71d995c9a8f0f6d31beb7.tar.gz
mdadm-ad90adb689e3581432d71d995c9a8f0f6d31beb7.tar.xz
mdadm-ad90adb689e3581432d71d995c9a8f0f6d31beb7.zip
Create: change default metadata type to 1.2
Change default - again, sorry. v1.1 causes problems as the conflicts with a boot sector, whether on the whole device or in a partition. I guess the rule is they you aren't allowed to use the first sector in general. v1.2 is mostly just as good and avoid boot-sector problems so default to that instead. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index 7861cf4..73f4149 100644
--- a/super1.c
+++ b/super1.c
@@ -1357,13 +1357,13 @@ static struct supertype *match_metadata_desc1(char *arg)
}
if (strcmp(arg, "1.1") == 0 ||
strcmp(arg, "1.01") == 0 ||
- strcmp(arg, "default") == 0 ||
strcmp(arg, "") == 0 /* no metadata */
) {
st->minor_version = 1;
return st;
}
if (strcmp(arg, "1.2") == 0 ||
+ strcmp(arg, "default") == 0 ||
strcmp(arg, "1.02") == 0) {
st->minor_version = 2;
return st;