mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-06 21:49:28 +03:00
config: add override_config_tree_from_profile fn to add the profile to a configuration cascade
When placing the profile in a configuration cascade, this sequence is used exactly: CONFIG_STRING -> CONFIG_PROFILE -> CONFIG_FILE/MERGED_FILES So if the profile is used, it overloads the lvm.conf (and any existing tag configs). However, if "--config" is used to define a custom configuration on command line, this overloads even the profile config!
This commit is contained in:
@ -135,6 +135,7 @@ int config_def_get_path(char *buf, size_t buf_size, int id);
|
||||
int config_def_check(struct cmd_context *cmd, int force, int skip, int suppress_messages);
|
||||
|
||||
int override_config_tree_from_string(struct cmd_context *cmd, const char *config_settings);
|
||||
int override_config_tree_from_profile(struct cmd_context *cmd, struct profile *profile);
|
||||
struct dm_config_tree *remove_config_tree_by_source(struct cmd_context *cmd, config_source_t source);
|
||||
config_source_t config_get_source_type(struct dm_config_tree *cft);
|
||||
|
||||
|
Reference in New Issue
Block a user