diff options
author | NeilBrown <neilb@suse.de> | 2008-11-27 05:43:22 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-27 05:43:22 +0100 |
commit | 78b958e2052ccd069fa6ccc2367cda758d55540e (patch) | |
tree | eaf666c8f93c5f196a31b87aa4548412ae399f4a /Assemble.c | |
parent | imsm: fix metadata reservation (diff) | |
download | 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 '')
-rw-r--r-- | Assemble.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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'. |