diff options
author | NeilBrown <neilb@suse.de> | 2008-09-18 08:03:05 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-09-18 08:03:05 +0200 |
commit | c5afc314e2c36d54bf78b0d0049995c0f2df821c (patch) | |
tree | a154a2a3463b03b057f751b2592c7dfc81670c6f /mdopen.c | |
parent | Handle incremental assembly of containers. (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |