diff options
author | NeilBrown <neilb@suse.de> | 2008-09-18 16:06:41 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-09-18 16:06:41 +1000 |
commit | 9362c1c80c4464fb66e3cc9eb8ba7631f21810d7 (patch) | |
tree | 795cd9ce0c0c7c6c787c11844e062c32c8a23c66 /Assemble.c | |
parent | ffcfc735a5114290cb6b3063c8a5fddddc384a36 (diff) | |
download | mdadm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |