diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-11-06 09:53:01 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-11-06 13:43:13 +0100 |
commit | 6f48719cb27e6856a782b8a31c433526369cd50c (patch) | |
tree | a5310b44cd79aa6dca4e7cd4e59d9f4adde4596f | |
parent | mdadm.conf: remove refferences to old kernels. (diff) | |
download | mdadm-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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 |