Skip to content

Commit

Permalink
mdopen: remove wrong condition
Browse files Browse the repository at this point in the history
After mentioned patch, this condition get opposite meaning and it
is blocking creation in cases where it was supported.

Remove it now.

Fixes: 119cdca ("mdadm: drop auto= support")
Signed-off-by: Mariusz Tkaczyk <[email protected]>
  • Loading branch information
mtkaczyk committed Nov 6, 2024
1 parent 5048c17 commit 6f48719
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mdopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,8 @@ int create_mddev(char *dev, char *name, int trustworthy,
}

/* Now determine device number */
/* named 'METADATA' cannot use 'mdp'. */
if (name && name[0] == 0)
name = NULL;
if (name && trustworthy == METADATA) {
pr_err("%s is not allowed for a %s container. Consider /dev/md%d.\n", dev, name, num);
return -1;
}

if (num < 0 && trustworthy == LOCAL && name) {
/* if name is numeric, possibly prefixed by
Expand Down

0 comments on commit 6f48719

Please sign in to comment.