Skip to contentSkip to conversation

Assemble: skip devices that don't match uuid instead of aborting the assembly.

PATCH Applied Sudhakar Panneerselvam 2 participants 2 messages Jul 22, 2021 – Aug 2, 2021 MD RAID

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 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.

---
 Assemble.c | 5 +++++
 1 file changed, 5 insertions(+)
Assemble.c +5 -0
index 5c6aca9253ac..b46891c0ddaa 100644
@@ -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);
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 7 lines · Sudhakar Panneerselvam

This fixes '03r0assem' test as assembly fails when looking for specific uuid among the device list.

---
 Assemble.c | 5 +++++
 1 file changed, 5 insertions(+)

Applied!

Thanks,
Jes