diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2022-07-19 14:48:22 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-08-23 15:52:33 +0200 |
commit | e4a030a0d3a953b8e74c118200e58dc83c2fc608 (patch) | |
tree | eaabb5ad4e22c5309ade50f67efc90a5af5858d4 /config.c | |
parent | tests: add test for names (diff) | |
download | mdadm-e4a030a0d3a953b8e74c118200e58dc83c2fc608.tar.xz mdadm-e4a030a0d3a953b8e74c118200e58dc83c2fc608.zip |
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.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; |