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:
NeilBrown 2010-08-31 17:20:58 +10:00
parent b1702f4826
commit 93601c439c
1 changed files with 1 additions and 0 deletions

View File

@ -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;