summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>2021-07-22 18:28:34 +0000
committerJes Sorensen <jsorensen@fb.com>2021-08-02 10:53:33 -0400
commite6878148c1742b1f78a659503f5e5067501ebf73 (patch)
treeecf4b0397e6c5cf07c41a8c2dfbe874f2a496fcc
parent0663137c77bc848b2927075c077b545fceeb4dae (diff)
downloadmdadm-e6878148c1742b1f78a659503f5e5067501ebf73.tar.gz
Assemble: skip devices that don't match uuid instead of aborting the assembly.
This fixes '03r0assem' test as assembly fails when looking for specific uuid among the device list. Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r--Assemble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index f954b4db..0df46244 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -331,6 +331,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);