summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorSudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>2021-07-22 20:28:34 +0200
committerJes Sorensen <jsorensen@fb.com>2021-08-02 16:53:33 +0200
commite6878148c1742b1f78a659503f5e5067501ebf73 (patch)
treeecf4b0397e6c5cf07c41a8c2dfbe874f2a496fcc /Assemble.c
parentAdd monitor delay parameter to mdadm.conf (diff)
downloadmdadm-e6878148c1742b1f78a659503f5e5067501ebf73.tar.xz
mdadm-e6878148c1742b1f78a659503f5e5067501ebf73.zip
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>
Diffstat (limited to 'Assemble.c')
-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);