summaryrefslogtreecommitdiffstats
path: root/mdopen.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-09-18 08:03:05 +0200
committerNeilBrown <neilb@suse.de>2008-09-18 08:03:05 +0200
commitc5afc314e2c36d54bf78b0d0049995c0f2df821c (patch)
treea154a2a3463b03b057f751b2592c7dfc81670c6f /mdopen.c
parentHandle incremental assembly of containers. (diff)
downloadmdadm-c5afc314e2c36d54bf78b0d0049995c0f2df821c.tar.xz
mdadm-c5afc314e2c36d54bf78b0d0049995c0f2df821c.zip
Lots of fixes to make incremental assembly of containers work.
So: mdadm -I /dev/whatever will (if appropriate) add whatever to a container, then start any arrays inside the container.
Diffstat (limited to 'mdopen.c')
-rw-r--r--mdopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdopen.c b/mdopen.c
index 4fbcb484..0b9498cc 100644
--- a/mdopen.c
+++ b/mdopen.c
@@ -282,7 +282,7 @@ int open_mddev_devnum(char *devname, int devnum, char *name,
if (devname)
strcpy(chosen_name, devname);
- else if (name && strchr(name,'/') == NULL) {
+ else if (name && name[0] && strchr(name,'/') == NULL) {
char *n = strchr(name, ':');
if (n) n++; else n = name;
if (isdigit(*n) && devnum < 0)