All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
To: jes@trained-monkey.org
Cc: linux-raid@vger.kernel.org
Subject: [PATCH 3/5] Assemble: skip devices that don't match uuid instead of aborting the assembly.
Date: Thu, 22 Jul 2021 18:28:34 +0000	[thread overview]
Message-ID: <20210722182834.GA25244@oracle.com> (raw)

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>
---
 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


             reply	other threads:[~2021-07-22 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 18:28 Sudhakar Panneerselvam [this message]
2021-08-02 14:53 ` [PATCH 3/5] Assemble: skip devices that don't match uuid instead of aborting the assembly Jes Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210722182834.GA25244@oracle.com \
    --to=sudhakar.panneerselvam@oracle.com \
    --cc=jes@trained-monkey.org \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.