mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
move init_use_aio
it doesn't make sense to call from init_logging
This commit is contained in:
parent
e158835a05
commit
ebaaff3590
@ -328,8 +328,6 @@ static void _init_logging(struct cmd_context *cmd)
|
|||||||
find_config_tree_bool(cmd, global_test_CFG, NULL);
|
find_config_tree_bool(cmd, global_test_CFG, NULL);
|
||||||
init_test(cmd->default_settings.test);
|
init_test(cmd->default_settings.test);
|
||||||
|
|
||||||
init_use_aio(find_config_tree_bool(cmd, global_use_aio_CFG, NULL));
|
|
||||||
|
|
||||||
/* Settings for logging to file */
|
/* Settings for logging to file */
|
||||||
if (find_config_tree_bool(cmd, log_overwrite_CFG, NULL))
|
if (find_config_tree_bool(cmd, log_overwrite_CFG, NULL))
|
||||||
append = 0;
|
append = 0;
|
||||||
@ -1661,6 +1659,8 @@ struct cmd_context *create_toolcontext(unsigned is_clvmd,
|
|||||||
find_config_tree_array(cmd, devices_types_CFG, NULL))))
|
find_config_tree_array(cmd, devices_types_CFG, NULL))))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
|
||||||
|
init_use_aio(find_config_tree_bool(cmd, global_use_aio_CFG, NULL));
|
||||||
|
|
||||||
if (!_init_dev_cache(cmd))
|
if (!_init_dev_cache(cmd))
|
||||||
goto_out;
|
goto_out;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user