diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2022-08-16 16:56:06 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2022-08-17 10:47:24 +0200 |
commit | b4cc28c2ef72ee022c1a03819927e31775c18676 (patch) | |
tree | 2d027a817b5a26e53ce32e97dd8cdb9f835568af /WHATS_NEW | |
parent | 81839cc4ebf566ea9f3e6d819c7338b98cdec374 (diff) | |
download | lvm2-b4cc28c2ef72ee022c1a03819927e31775c18676.tar.gz |
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"
Diffstat (limited to 'WHATS_NEW')
-rw-r--r-- | WHATS_NEW | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,5 +1,6 @@ Version 2.03.17 - =============================== + Add --valuesonly option to lvmconfig to print only values without keys. Updates configure with recent autoconf tooling. Fix lvconvert --test --type vdo-pool execution. Add json_std output format for more JSON standard compliant version of output. |