]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Assemble: wait for device to appear via udev
authorNeilBrown <neilb@suse.de>
Thu, 27 Nov 2008 04:43:22 +0000 (15:43 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 27 Nov 2008 04:43:22 +0000 (15:43 +1100)
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>
Assemble.c

index 20c4be7a4e7bc6dd5c102038e971aab4df8494fa..2eec5d2085bbb77b181014d9c17129ef14931e58 100644 (file)
@@ -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'.