From 9a40c32728dceb66bac603e96656223944b6c7d4 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 11 May 2009 15:58:44 +1000 Subject: create_mddev: don't replace /dev/mdX with /dev/md/X If someone creates/assemble an array called "/dev/md0", don't force it to be "/dev/md/0". Doing so isn't really necessary and it likely to confuse people. Signed-off-by: NeilBrown --- mdopen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mdopen.c') diff --git a/mdopen.c b/mdopen.c index a37eb9c3..293ac25d 100644 --- a/mdopen.c +++ b/mdopen.c @@ -311,7 +311,10 @@ int create_mddev(char *dev, char *name, int autof, int trustworthy, conflict = 0; } } - if (cname[0] == 0) + + if (dev) + strcpy(chosen, dev); + else if (cname[0] == 0) strcpy(chosen, devname); /* We have a device number and name. -- cgit v1.2.3