summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2022-07-19 14:48:22 +0200
committerJes Sorensen <jsorensen@fb.com>2022-08-23 09:52:33 -0400
commite4a030a0d3a953b8e74c118200e58dc83c2fc608 (patch)
treeeaabb5ad4e22c5309ade50f67efc90a5af5858d4 /config.c
parentb7671c82010ffc04dfaecff2dd19ef8b2283e2b6 (diff)
downloadmdadm-e4a030a0d3a953b8e74c118200e58dc83c2fc608.tar.gz
mdadm: remove symlink option
The option is not used. Remove it from code. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/config.c b/config.c
index 9c72545..dc1620c 100644
--- a/config.c
+++ b/config.c
@@ -194,7 +194,6 @@ struct mddev_dev *load_containers(void)
struct createinfo createinfo = {
.autof = 2, /* by default, create devices with standard names */
- .symlinks = 1,
.names = 0, /* By default, stick with numbered md devices. */
.bblist = 1, /* Use a bad block list by default */
#ifdef DEBIAN
@@ -310,11 +309,7 @@ static void createline(char *line)
if (!createinfo.supertype)
pr_err("metadata format %s unknown, ignoring\n",
w+9);
- } else if (strncasecmp(w, "symlinks=yes", 12) == 0)
- createinfo.symlinks = 1;
- else if (strncasecmp(w, "symlinks=no", 11) == 0)
- createinfo.symlinks = 0;
- else if (strncasecmp(w, "names=yes", 12) == 0)
+ } else if (strncasecmp(w, "names=yes", 12) == 0)
createinfo.names = 1;
else if (strncasecmp(w, "names=no", 11) == 0)
createinfo.names = 0;