summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-11-06 09:53:01 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-11-06 13:43:13 +0100
commit6f48719cb27e6856a782b8a31c433526369cd50c (patch)
treea5310b44cd79aa6dca4e7cd4e59d9f4adde4596f
parentmdadm.conf: remove refferences to old kernels. (diff)
downloadmdadm-6f48719cb27e6856a782b8a31c433526369cd50c.tar.xz
mdadm-6f48719cb27e6856a782b8a31c433526369cd50c.zip
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 <mariusz.tkaczyk@linux.intel.com>
-rw-r--r--mdopen.c5
1 files changed, 0 insertions, 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