mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-23 10:50:34 +03:00
lvmcmdline: memlock init after config parsing
Since we now support disabling memory locking by setting reserved memory or stack to 0 - it would be useful if this would work also with cmdline --config option. TODO: rework creation and usage of cmdtool context so we avoid several places in the code which do try to initialized something...
This commit is contained in:
parent
4ef211a187
commit
0d3b87d19f
@ -21,6 +21,7 @@
|
||||
#include "lvm-version.h"
|
||||
#include "lib/locking/lvmlockd.h"
|
||||
#include "lib/datastruct/str_list.h"
|
||||
#include "lib/mm/memlock.h"
|
||||
#include "libdaemon/server/daemon-stray.h"
|
||||
|
||||
/* coverity[unnecessary_header] */
|
||||
@ -2709,6 +2710,7 @@ static void _apply_current_settings(struct cmd_context *cmd)
|
||||
{
|
||||
_apply_current_output_settings(cmd);
|
||||
|
||||
memlock_init(cmd);
|
||||
init_test(cmd->current_settings.test);
|
||||
init_mirror_in_sync(0);
|
||||
init_dmeventd_monitor(DEFAULT_DMEVENTD_MONITOR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user