summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-11-17 13:15:32 +1100
committerNeilBrown <neilb@suse.de>2009-11-17 13:15:32 +1100
commit7d5c3964ccfaace123f7b75e15d38c2650e013d8 (patch)
tree7103dfe3f49a51131e59233449ffdfd731e0179b /super1.c
parent5f175898dedb2bb2635d4d1dcb2afa8c420d5eae (diff)
downloadmdadm-7d5c3964ccfaace123f7b75e15d38c2650e013d8.tar.gz
mdadm-7d5c3964ccfaace123f7b75e15d38c2650e013d8.tar.xz
mdadm-7d5c3964ccfaace123f7b75e15d38c2650e013d8.zip
Change default metadata from 0.90 to 1.1
1.1 is more flexible in a number of ways and is safer. 0.90 is still fully supported. 1.0 should possibly be used for RAID1 arrays that you want to boot off, depending on your boot loader. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index 667154d..a21e7e3 100644
--- a/super1.c
+++ b/super1.c
@@ -1351,7 +1351,10 @@ static struct supertype *match_metadata_desc1(char *arg)
return st;
}
if (strcmp(arg, "1.1") == 0 ||
- strcmp(arg, "1.01") == 0) {
+ strcmp(arg, "1.01") == 0 ||
+ strcmp(arg, "default") == 0 ||
+ strcmp(arg, "") == 0 /* no metadata */
+ ) {
st->minor_version = 1;
return st;
}