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 /Incremental.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 'Incremental.c')
-rw-r--r-- | Incremental.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Incremental.c b/Incremental.c index d7eeafc..f57c9bb 100644 --- a/Incremental.c +++ b/Incremental.c @@ -217,7 +217,7 @@ int Incremental(char *devname, int verbose, int runstop, /* 3a/ if not, check for homehost match. If no match, reject. */ if (!match) { if (homehost == NULL || - st->ss->match_home(st, homehost) == 0) { + st->ss->match_home(st, homehost) != 1) { if (verbose >= 0) fprintf(stderr, Name ": not found in mdadm.conf and not identified by homehost.\n"); |