summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-27 15:43:22 +1100
committerNeilBrown <neilb@suse.de>2008-11-27 15:43:22 +1100
commit78b958e2052ccd069fa6ccc2367cda758d55540e (patch)
treeeaf666c8f93c5f196a31b87aa4548412ae399f4a /Assemble.c
parentdda5855f96baa1b7e15e6ee8bb6d985e269257e5 (diff)
downloadmdadm-78b958e2052ccd069fa6ccc2367cda758d55540e.tar.gz
mdadm-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 'Assemble.c')
-rw-r--r--Assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 20c4be7..2eec5d2 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'.