mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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 -
|
||||
=====================================
|
||||
Support new internal command _dmeventd_thin_command.
|
||||
Introduce new dmeventd/thin_command configurable setting.
|
||||
Use new default units 'r' for displaying sizes.
|
||||
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);
|
||||
} else if (!strcmp(cmdline, "_memlock_dec"))
|
||||
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);
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user