diff options
author | NeilBrown <neilb@suse.de> | 2011-02-01 14:44:02 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-02-01 14:44:02 +1100 |
commit | e5508b361d970a7657c9f81303223fa114bdcd9b (patch) | |
tree | bb4e33ec35abc0938bc8f9e2cb69ab5aee7c1cb7 /Assemble.c | |
parent | d11128690b61e61c1ff12b2c4b3d7028a0715b1d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |