Neil Brown: Make sure --auto=mdp is honoured properly

Martin F. Krafft madduck at alioth.debian.org
Tue Apr 22 10:25:58 UTC 2008


Module: mdadm
Branch: upstream-patches
Commit: dc2ee6b3e3330d8f8d7af11ae78b6f0e5e2e9d69
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git/?a=commit;h=dc2ee6b3e3330d8f8d7af11ae78b6f0e5e2e9d69

Author: Neil Brown <neilb at suse.de>
Date:   Wed Oct 17 10:00:55 2007 +1000

Make sure --auto=mdp is honoured properly

This would only create partitioned devices if the device name was a
'standard' name.  This this patch, any name will work.

---

 mdopen.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mdopen.c b/mdopen.c
index 362d4d8..ebaba95 100644
--- 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;




More information about the pkg-mdadm-commits mailing list