]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Make sure --auto=mdp is honoured properly
authorNeil Brown <neilb@suse.de>
Wed, 17 Oct 2007 00:00:55 +0000 (10:00 +1000)
committerNeil Brown <neilb@suse.de>
Wed, 17 Oct 2007 00:00:55 +0000 (10:00 +1000)
This would only create partitioned devices if the device name was a
'standard' name.  This this patch, any name will work.

mdopen.c

index 362d4d8bef377d9d9e0042a67683d8bb971a593c..ebaba950705bb2dc2ca7dab30b582b2dc453b0e5 100644 (file)
--- a/mdopen.c
+++ b/mdopen.c
@@ -161,6 +161,7 @@ int open_mddev(char *dev, int autof)
                                "not compatable with device named %s\n", dev);
                                return -1;
                        }
+                       major_num = get_mdp_major();
                        break;
                case 5: /* default to md if not standard */
                        break;