summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-27 05:43:22 +0100
committerNeilBrown <neilb@suse.de>2008-11-27 05:43:22 +0100
commit78b958e2052ccd069fa6ccc2367cda758d55540e (patch)
treeeaf666c8f93c5f196a31b87aa4548412ae399f4a /Assemble.c
parentimsm: fix metadata reservation (diff)
downloadmdadm-78b958e2052ccd069fa6ccc2367cda758d55540e.tar.xz
mdadm-78b958e2052ccd069fa6ccc2367cda758d55540e.zip
Assemble: wait for device to appear via udev
Use the new "wait_for" function to make sure udev has created the device before completion the 'assemble'. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r--Assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 20c4be7a..2eec5d20 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1091,6 +1091,7 @@ int Assemble(struct supertype *st, char *mddev,
fprintf(stderr, ".\n");
}
close(mdfd);
+ wait_for(mddev);
if (auto_assem) {
int usecs = 1;
/* There is a nasty race with 'mdadm --monitor'.