mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
config: add comment note about advanced and unsupported config nodes
This shows up in the output as a short commentary: $ lvm dumpconfig --type default --withcomments metadata/disk_areas # Configuration option metadata/disk_areas. # This configuration option is advanced. # This configuration option is not officially supported. disk_areas=""
This commit is contained in:
parent
088d88cfe2
commit
7fd04bd93a
@ -838,6 +838,12 @@ static int _out_prefix_fn(const struct dm_config_node *cn, const char *line, voi
|
||||
|
||||
if (cfg_def->comment)
|
||||
fprintf(out->fp, "%s# %s\n", line, cfg_def->comment);
|
||||
|
||||
if (cfg_def->flags & CFG_ADVANCED)
|
||||
fprintf(out->fp, "%s# This configuration %s is advanced.\n", line, node_type_name);
|
||||
|
||||
if (cfg_def->flags & CFG_UNSUPPORTED)
|
||||
fprintf(out->fp, "%s# This configuration %s is not officially supported.\n", line, node_type_name);
|
||||
}
|
||||
|
||||
if (out->withversion) {
|
||||
|
Loading…
Reference in New Issue
Block a user