Fix spare migration.
Spare migration uses major:minor device names. When we added support for kernel style names, we broke that. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
b1702f4826
commit
93601c439c
1
Manage.c
1
Manage.c
|
@ -478,6 +478,7 @@ int Manage_subdevs(char *devname, int fd,
|
|||
if (stat(add_dev, &stb) < 0)
|
||||
continue;
|
||||
} else if (strchr(dv->devname, '/') == NULL &&
|
||||
strchr(dv->devname, ':') == NULL &&
|
||||
strlen(dv->devname) < 50) {
|
||||
/* Assume this is a kernel-internal name like 'sda1' */
|
||||
int found = 0;
|
||||
|
|
Loading…
Reference in New Issue