1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/config
Peter Rajnoha b4cc28c2ef lvmconfig: add --valuesonly option
The new --valuesonly option causes the lvmconfig output to contain only
values without keys for each config node. This is practical mainly in
case where we use lvmconfig in scripts and we want to assign the value
to a different custom key or simply output the value itself without the
key.

For example:

  # lvmconfig --type full activation/raid_fault_policy
  raid_fault_policy="warn"

  # lvmconfig --type full activation/raid_fault_policy --valuesonly
  "warn"

  # my_var=$(lvmconfig --type full activation/raid_fault_policy --valuesonly)

  # echo $my_var
  "warn"
2022-08-17 10:47:24 +02:00
..
config_settings.h config: recognize 'json_std' for report/output_format config setting 2022-08-11 11:10:11 +02:00
config.c lvmconfig: add --valuesonly option 2022-08-17 10:47:24 +02:00
config.h lvmconfig: add --valuesonly option 2022-08-17 10:47:24 +02:00
defaults.h add hints interface to the pvs_online file information 2021-11-04 10:58:16 -05:00