summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--config.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ea4a3e0..950ec68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@ Changes Prior to this release
- Fix some endian-ness issues with version-1 superblocks (affects
bigendian only).
- Fix endian problem with 'bitmap' metadata
+ - Allow a number (of partitions) after the 'yes' option to --auto=
+ This is particularly useful in the 'create' line in mdadm.conf.
Changes Prior to 2.5.3 release
- Document v0.91 superblocks in md.4
diff --git a/config.c b/config.c
index 219308d..d251fbf 100644
--- a/config.c
+++ b/config.c
@@ -291,6 +291,8 @@ int parse_auto(char *str, char *msg, int config)
len = e - str;
if ((len == 2 && strncasecmp(str,"md",2)==0)) {
autof = config ? 5 : 3;
+ } else if ((len == 3 && strncasecmp(str,"yes",3)==0)) {
+ autof = 2;
} else if ((len == 3 && strncasecmp(str,"mdp",3)==0)) {
autof = config ? 6 : 4;
} else if ((len == 1 && strncasecmp(str,"p",1)==0) ||