summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-01-15 15:19:04 -0600
committerDavid Teigland <teigland@redhat.com>2019-01-16 11:45:53 -0600
commitebaaff3590b60933f6f1e2bfd010a86fc373f7eb (patch)
tree3da3456dc78dc3d34379bce409d222980f1e2cac
parente158835a05963c8cb4166100c9d01e7ff3991c82 (diff)
downloadlvm2-ebaaff3590b60933f6f1e2bfd010a86fc373f7eb.tar.gz
move init_use_aio
it doesn't make sense to call from init_logging
-rw-r--r--lib/commands/toolcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index bd216aa55..62e21f7db 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -328,8 +328,6 @@ static void _init_logging(struct cmd_context *cmd)
find_config_tree_bool(cmd, global_test_CFG, NULL);
init_test(cmd->default_settings.test);
- init_use_aio(find_config_tree_bool(cmd, global_use_aio_CFG, NULL));
-
/* Settings for logging to file */
if (find_config_tree_bool(cmd, log_overwrite_CFG, NULL))
append = 0;
@@ -1661,6 +1659,8 @@ struct cmd_context *create_toolcontext(unsigned is_clvmd,
find_config_tree_array(cmd, devices_types_CFG, NULL))))
goto_out;
+ init_use_aio(find_config_tree_bool(cmd, global_use_aio_CFG, NULL));
+
if (!_init_dev_cache(cmd))
goto_out;