]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Allow domain_test to report that no domains were found.
[thirdparty/mdadm.git] / Assemble.c
index a9c7875af3d61527933dda821273bf1d1cc31fd1..b3f54ce43a811b28f425bf1f92b9cb96361af19e 100644 (file)
@@ -597,7 +597,7 @@ int Assemble(struct supertype *st, char *mddev,
                } else {
                        struct dev_policy *pol = NULL;
                        pol = devnum_policy(stb.st_rdev);
-                       if (domain_test(domains, pol, NULL))
+                       if (domain_test(domains, pol, NULL) == 1)
                                /* take this spare if domains match */
                                tmpdev->used = 1;
                        else