1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-07 15:33:21 +03:00

config: replace find_config_tree_node with find_config_tree_array where appropriate

This commit is contained in:
Peter Rajnoha
2015-07-08 11:22:24 +02:00
parent 67a61cce1b
commit 3b6840e099
14 changed files with 44 additions and 71 deletions

View File

@@ -681,7 +681,7 @@ static int _init_preferred_names(struct cmd_context *cmd)
_cache.preferred_names_matcher = NULL;
if (!(cn = find_config_tree_node(cmd, devices_preferred_names_CFG, NULL)) ||
if (!(cn = find_config_tree_array(cmd, devices_preferred_names_CFG, NULL)) ||
cn->v->type == DM_CFG_EMPTY_ARRAY) {
log_very_verbose("devices/preferred_names not found in config file: "
"using built-in preferences");