From 308e1801baa05edbcfda6e8054fdf90727581c62 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 12 Sep 2005 05:23:11 +0000 Subject: Fix assembling of array with spares when verion-1 superblock is used. As spared don't have a position in the raid array with verion-1 superblocks, we need to handle them a bit differently. Signed-off-by: Neil Brown --- Manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Manage.c') diff --git a/Manage.c b/Manage.c index 4cf40e1..67e7210 100644 --- a/Manage.c +++ b/Manage.c @@ -288,7 +288,7 @@ int Manage_subdevs(char *devname, int fd, if (ioctl(fd, ADD_NEW_DISK, &disc) == 0) { if (verbose >= 0) fprintf(stderr, Name ": re-added %s\n", dv->devname); - return 0; + continue; } /* fall back on normal-add */ } -- cgit