[PATCH 3/5] Assemble: skip devices that don't match uuid instead of aborting the assembly.

Subsystems: the rest

STALE1835d

2 messages, 2 authors, 2021-08-02 · open the first message on its own page

[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

Re: [PATCH 3/5] Assemble: skip devices that don't match uuid instead of aborting the assembly.

From: Jes Sorensen <hidden>
Date: 2021-08-02 14:53:54

On 7/22/21 2:28 PM, Sudhakar Panneerselvam wrote:
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(+)
Applied!

Thanks,
Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help