From 6f48719cb27e6856a782b8a31c433526369cd50c Mon Sep 17 00:00:00 2001 From: Mariusz Tkaczyk Date: Wed, 6 Nov 2024 09:53:01 +0100 Subject: mdopen: remove wrong condition After mentioned patch, this condition get opposite meaning and it is blocking creation in cases where it was supported. Remove it now. Fixes: 119cdcad049e ("mdadm: drop auto= support") Signed-off-by: Mariusz Tkaczyk --- mdopen.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mdopen.c b/mdopen.c index 3532c758..26f0c716 100644 --- a/mdopen.c +++ b/mdopen.c @@ -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 -- cgit v1.2.3