summaryrefslogtreecommitdiff
path: root/lib/config/config_settings.h
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2015-10-16 16:25:51 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2015-10-16 17:05:54 +0200
commitc3bfe07f2ad393963af5b7138bccc622e6561c8f (patch)
tree0bf4669d21edcfd93206d639b2172595301109db /lib/config/config_settings.h
parent508f0f5a21af8decf32944e01ecf17c0059a9c9f (diff)
downloadlvm2-c3bfe07f2ad393963af5b7138bccc622e6561c8f.tar.gz
config: add report/compact_output_cols to control which columns to compact in report output
The new report/compact_output_cols setting has exactly the same effect as report/compact_output setting. The difference is that with the new setting it's possible to define which cols should be compacted exactly in contrast to all cols in case of report/compact_output. In case both compact_output and compact_output_cols is enabled/set, the compact_output prevails. For example: $ lvmconfig --type full report/compact_output report/compact_output_cols compact_output=0 compact_output_cols="" $ lvs vg LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert lvol0 vg -wi-a----- 4.00m --- $ lvmconfig --type full report/compact_output report/compact_output_cols compact_output=0 compact_output_cols="data_percent,metadata_percent,pool_lv,move_pv,origin" $ lvs vg LV VG Attr LSize Log Cpy%Sync Convert lvol0 vg -wi-a----- 4.00m --- $ lvmconfig --type full report/compact_output report/compact_output_cols compact_output=1 compact_output_cols="data_percent,metadata_percent,pool_lv,move_pv,origin" $ lvs vg LV VG Attr LSize lvol0 vg -wi-a----- 4.00m
Diffstat (limited to 'lib/config/config_settings.h')
-rw-r--r--lib/config/config_settings.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index 9cc444f4c..cefc5799b 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -1421,6 +1421,13 @@ cfg(report_compact_output_CFG, "compact_output", report_CFG_SECTION, CFG_PROFILA
"skipped and not printed. Compact output is applicable only if\n"
"report/buffered is enabled.\n")
+cfg(report_compact_output_cols_CFG, "compact_output_cols", report_CFG_SECTION, CFG_ALLOW_EMPTY | CFG_PROFILABLE | CFG_DEFAULT_COMMENTED, CFG_TYPE_STRING, DEFAULT_COMPACT_OUTPUT_COLS, vsn(2, 2, 133), NULL, 0, NULL,
+ "Do not print empty values for given report fields.\n"
+ "The same as compact_output setting, but the compaction is not done\n"
+ "globally for all fields in report but only for given fields. If both\n"
+ "compact_output and compact_output_fields is used at the same time,\n"
+ "the compact_output setting prevails.\n")
+
cfg(report_aligned_CFG, "aligned", report_CFG_SECTION, CFG_PROFILABLE | CFG_DEFAULT_COMMENTED, CFG_TYPE_BOOL, DEFAULT_REP_ALIGNED, vsn(1, 0, 0), NULL, 0, NULL,
"Align columns in report output.\n")