summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-09-18 16:06:41 +1000
committerNeilBrown <neilb@suse.de>2008-09-18 16:06:41 +1000
commit9362c1c80c4464fb66e3cc9eb8ba7631f21810d7 (patch)
tree795cd9ce0c0c7c6c787c11844e062c32c8a23c66 /Assemble.c
parentffcfc735a5114290cb6b3063c8a5fddddc384a36 (diff)
downloadmdadm-9362c1c80c4464fb66e3cc9eb8ba7631f21810d7.tar.gz
mdadm-9362c1c80c4464fb66e3cc9eb8ba7631f21810d7.tar.xz
mdadm-9362c1c80c4464fb66e3cc9eb8ba7631f21810d7.zip
Allow metadata handler to report that it doesn't record homehost.
For now, this means that the lack of a homehost doesn't always prevent assembly. Soon we will allow assembly anyway, but have different messages if homehost isn't supported.
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 65a679b..148ddbf 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -339,7 +339,8 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
if (homehost) {
int first = st->ss->match_home(st, homehost);
int last = tst->ss->match_home(tst, homehost);
- if (first+last == 1) {
+ if (first != last &&
+ (first == 1 || last == 1)) {
/* We can do something */
if (first) {/* just ignore this one */
if ((inargv && verbose >= 0) || verbose > 0)