[PATCH 3/5] Assemble: skip devices that don't match uuid instead of aborting the assembly.
From: Sudhakar Panneerselvam <hidden>
Date: 2021-07-22 18:28:43
This fixes '03r0assem' test as assembly fails when looking for specific uuid among the device list. Signed-off-by: Sudhakar Panneerselvam <redacted> --- Assemble.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/Assemble.c b/Assemble.c
index 5c6aca9253ac..b46891c0ddaa 100644
--- a/Assemble.c
+++ b/Assemble.c@@ -274,6 +274,11 @@ static int select_devices(struct mddev_dev *devlist, /* Ignore unrecognised device if looking for * specific array */ goto loop; + if (ident->uuid_set) + /* ignore unrecognized device if looking for + * specific uuid + */ + goto loop; pr_err("%s has no superblock - assembly aborted\n", devname);
--
1.8.3.1