mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-28 02:50:41 +03:00
config: fix verbose type to int
'verbose' was marked as a boolean option while it takes integer args - so it has limited usage to 0 or 1, but we supported 0-4 at least. Fix it by switching to corrent int type. (Hopefully noone was trying to use this variable as true/yes/false/no way - as the would be unsupported/undocumented).
This commit is contained in:
parent
02f2916b5b
commit
3b76e9fd98
@ -1,5 +1,6 @@
|
||||
Version 2.02.142 -
|
||||
====================================
|
||||
Fix config type of 'log/verbose' from bool to int (2.02.99).
|
||||
Fix thinp watermark calc for data LV for faster dmeventd responce (2.02.133).
|
||||
Use use_blkid_wiping=0 if not defined in lvm.conf and support not compiled in.
|
||||
Do not check for suspended devices if scanning for lvmetad update.
|
||||
|
@ -315,7 +315,7 @@ static void _init_logging(struct cmd_context *cmd)
|
||||
init_silent(cmd->default_settings.silent);
|
||||
|
||||
/* Verbose level for tty output */
|
||||
cmd->default_settings.verbose = find_config_tree_bool(cmd, log_verbose_CFG, NULL);
|
||||
cmd->default_settings.verbose = find_config_tree_int(cmd, log_verbose_CFG, NULL);
|
||||
init_verbose(cmd->default_settings.verbose + VERBOSE_BASE_LEVEL);
|
||||
|
||||
/* Log message formatting */
|
||||
|
@ -535,7 +535,7 @@ cfg_runtime(allocation_thin_pool_chunk_size_CFG, "thin_pool_chunk_size", allocat
|
||||
cfg(allocation_physical_extent_size_CFG, "physical_extent_size", allocation_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_TYPE_INT, DEFAULT_EXTENT_SIZE, vsn(2, 2, 112), NULL, 0, NULL,
|
||||
"Default physical extent size in KiB to use for new VGs.\n")
|
||||
|
||||
cfg(log_verbose_CFG, "verbose", log_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_VERBOSE, vsn(1, 0, 0), NULL, 0, NULL,
|
||||
cfg(log_verbose_CFG, "verbose", log_CFG_SECTION, 0, CFG_TYPE_INT, DEFAULT_VERBOSE, vsn(1, 0, 0), NULL, 0, NULL,
|
||||
"Controls the messages sent to stdout or stderr.\n")
|
||||
|
||||
cfg(log_silent_CFG, "silent", log_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_SILENT, vsn(2, 2, 98), NULL, 0, NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user