]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Allow a number after --auto=yes
authorNeil Brown <neilb@suse.de>
Thu, 12 Oct 2006 22:23:16 +0000 (08:23 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 12 Oct 2006 22:23:16 +0000 (08:23 +1000)
So if the device name is /dev/md/d0, then the number of
partitions is as given.  This is useful in 'CREATE' in
mdadm.conf

ChangeLog
config.c

index ea4a3e04441de0fc26564992be56872d5090b991..950ec68d3c58d30379dc7dabbf85829e79e3a164 100644 (file)
--- 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
index 219308dc703740f715cba595c285ba1464ed480a..d251fbfb58aae71fe8ad215fdc344f3a107583b8 100644 (file)
--- 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) ||