From a4bc1720ff51ed81ef3cd088f362d3a8a80bd1bc Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 4 Nov 2008 20:50:39 +1100 Subject: [PATCH] Assemble: Fix naming of container devices. Container devices are meant to be named for the metadata type. That wasn't happening properly for DDF. Signed-off-by: NeilBrown --- Assemble.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Assemble.c b/Assemble.c index f801a73e..dbbabdb1 100644 --- a/Assemble.c +++ b/Assemble.c @@ -423,13 +423,14 @@ int Assemble(struct supertype *st, char *mddev, name = info.name; break; case -1: - if (info.name[0] == 0 && info.array.level == LEVEL_CONTAINER) { - name = info.text_version; - trustworthy = METADATA; - } else - trustworthy = FOREIGN; + trustworthy = FOREIGN; break; } + if (info.name[0] == 0 && + info.array.level == LEVEL_CONTAINER) { + name = info.text_version; + trustworthy = METADATA; + } mdfd = create_mddev(mddev, name, ident->autof, trustworthy, chosen_name); if (mdfd < 0) { -- 2.47.2