From d1d3482b562369b0d32e4267c2e245a3371d1f10 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 3 Mar 2010 14:33:55 +1100 Subject: 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 --- Assemble.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Assemble.c') 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", -- cgit