summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-02-01 14:44:02 +1100
committerNeilBrown <neilb@suse.de>2011-02-01 14:44:02 +1100
commite5508b361d970a7657c9f81303223fa114bdcd9b (patch)
treebb4e33ec35abc0938bc8f9e2cb69ab5aee7c1cb7 /Assemble.c
parentd11128690b61e61c1ff12b2c4b3d7028a0715b1d (diff)
Allow domain_test to report that no domains were found.
Sometime we will need to know the difference between no domains found and domains didn't match. So allow domain_test to return different values and fix up all callers to maintain current behaviour. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index a9c7875a..b3f54ce4 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -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