From c5afc314e2c36d54bf78b0d0049995c0f2df821c Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 18 Sep 2008 16:03:05 +1000 Subject: 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. --- mdopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdopen.c') 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) -- cgit v1.2.3