attached, please apply
without this mdassemble cannot activate stacked arrays, i wonder how i
managed to miss it :(
L.
--
Luca Berra -- [EMAIL PROTECTED]
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
--- mdadm-2.5.3/mdassemble.c.close 2006-09-13 12:28:00.000000000 +0200
+++ mdadm-2.5.3/mdassemble.c 2006-09-13 12:30:24.000000000 +0200
@@ -91,13 +91,12 @@
rv |= 1;
continue;
}
- if (ioctl(mdfd, GET_ARRAY_INFO, &array)>=0)
- /* already assembled, skip */
- continue;
+ if (ioctl(mdfd, GET_ARRAY_INFO, &array) < 0)
rv |= Assemble(array_list->st, array_list->devname,
mdfd,
array_list,
NULL, NULL,
readonly, runstop, NULL, NULL,
verbose, force);
+ close(mdfd);
}
return rv;
}