summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-03-03 14:33:55 +1100
committerNeilBrown <neilb@suse.de>2010-03-03 14:33:55 +1100
commitd1d3482b562369b0d32e4267c2e245a3371d1f10 (patch)
tree72c0394196b102c9ec5782d5fdb80ba387ae43e7 /Assemble.c
parent5a9de8db047646e1e59d90afc478d1820736324d (diff)
downloadmdadm-d1d3482b562369b0d32e4267c2e245a3371d1f10.tar.gz
mdadm-d1d3482b562369b0d32e4267c2e245a3371d1f10.tar.xz
mdadm-d1d3482b562369b0d32e4267c2e245a3371d1f10.zip
config: add 'homehost' option to 'AUTO' line.
This allows basing auto-assembly decisions on whether the array is recorded as belonging to this host or not. Signed-off-by: NeilBrown <neilb@suse.de>
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 1f73a5b..b3052ac 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -261,7 +261,8 @@ int Assemble(struct supertype *st, char *mddev,
devname);
tmpdev->used = 2;
} else if (auto_assem && st == NULL &&
- !conf_test_metadata(tst->ss->name)) {
+ !conf_test_metadata(tst->ss->name,
+ tst->ss->match_home(tst, homehost) == 1)) {
if (report_missmatch)
fprintf(stderr, Name ": %s has metadata type %s for which "
"auto-assembly is disabled\n",