From: NeilBrown Date: Thu, 27 Nov 2008 04:43:22 +0000 (+1100) Subject: Assemble: wait for device to appear via udev X-Git-Tag: mdadm-3.0-devel3~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78b958e2052ccd069fa6ccc2367cda758d55540e;p=thirdparty%2Fmdadm.git 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 --- 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'.