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>
This commit is contained in:
Sudhakar Panneerselvam 2021-07-22 18:28:34 +00:00 committed by Jes Sorensen
parent 0663137c77
commit e6878148c1
1 changed files with 5 additions and 0 deletions

View File

@ -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);