mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmcmd2lib: support new command
Internal command which reads lvm.conf settins and passes it via envvar to dmeventd monitoring thread.
This commit is contained in:
parent
04a9cad499
commit
d80f9a107f
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.169 -
|
Version 2.02.169 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Support new internal command _dmeventd_thin_command.
|
||||||
Introduce new dmeventd/thin_command configurable setting.
|
Introduce new dmeventd/thin_command configurable setting.
|
||||||
Use new default units 'r' for displaying sizes.
|
Use new default units 'r' for displaying sizes.
|
||||||
Also unmount mount point on top of MD device if using blkdeactivate -u.
|
Also unmount mount point on top of MD device if using blkdeactivate -u.
|
||||||
|
@ -83,7 +83,10 @@ int lvm2_run(void *handle, const char *cmdline)
|
|||||||
memlock_inc_daemon(cmd);
|
memlock_inc_daemon(cmd);
|
||||||
} else if (!strcmp(cmdline, "_memlock_dec"))
|
} else if (!strcmp(cmdline, "_memlock_dec"))
|
||||||
memlock_dec_daemon(cmd);
|
memlock_dec_daemon(cmd);
|
||||||
else
|
else if (!strcmp(cmdline, "_dmeventd_thin_command")) {
|
||||||
|
if (setenv(cmdline, find_config_tree_str(cmd, dmeventd_thin_command_CFG, NULL), 1))
|
||||||
|
ret = ECMD_FAILED;
|
||||||
|
} else
|
||||||
ret = lvm_run_command(cmd, argc, argv);
|
ret = lvm_run_command(cmd, argc, argv);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user