From ac2ecf554303102ca23554a925fae91ac4fa57ca Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 4 Nov 2008 20:50:39 +1100 Subject: [PATCH] assemble: fix setting of 'foreign' trustability. --- Assemble.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assemble.c b/Assemble.c index dbbabdb1..1c9486b7 100644 --- a/Assemble.c +++ b/Assemble.c @@ -426,6 +426,13 @@ int Assemble(struct supertype *st, char *mddev, trustworthy = FOREIGN; break; } + if (!auto_assem && trustworthy == FOREIGN) + /* If the array is listed in mdadm or on + * command line, then we trust the name + * even if the array doesn't look local + */ + trustworthy = LOCAL; + if (info.name[0] == 0 && info.array.level == LEVEL_CONTAINER) { name = info.text_version; -- 2.39.2