1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
lvm2/tools
Peter Rajnoha 3be3eb2995 lvmconfig: add --type list and -l|--list
lvmconfig --type list displays plain list of configuration settings.
Some of the existing decorations can be used (--withsummary and
--withversions) as well as existing options/switches (--ignoreadvanced,
--ignoreunsupported, --ignorelocal, --atversion).

For example (displaying only "config" section so the list is not long):

$lvmconfig --type list config
config/checks
config/abort_on_errors
config/profile_dir

$ lvmconfig --type list --withsummary config
config/checks - If enabled, any LVM configuration mismatch is reported.
config/abort_on_errors - Abort the LVM process if a configuration mismatch is found.
config/profile_dir - Directory where LVM looks for configuration profiles.

$ lvmconfig -l config
config/checks - If enabled, any LVM configuration mismatch is reported.
config/abort_on_errors - Abort the LVM process if a configuration mismatch is found.
config/profile_dir - Directory where LVM looks for configuration profiles.

$ lvmconfig --type list --withsummary --withversions config
config/checks - If enabled, any LVM configuration mismatch is reported. [2.2.99]
config/abort_on_errors - Abort the LVM process if a configuration mismatch is found. [2.2.99]
config/profile_dir - Directory where LVM looks for configuration profiles. [2.2.99]

Example with --atversion (displaying global section):

$ lvmconfig --type list global
global/umask
global/test
global/units
global/si_unit_consistency
global/suffix
global/activation
global/fallback_to_lvm1
global/format
global/format_libraries
global/segment_libraries
global/proc
global/etc
global/locking_type
global/wait_for_locks
global/fallback_to_clustered_locking
global/fallback_to_local_locking
global/locking_dir
global/prioritise_write_locks
global/library_dir
global/locking_library
global/abort_on_internal_errors
global/detect_internal_vg_cache_corruption
global/metadata_read_only
global/mirror_segtype_default
global/raid10_segtype_default
global/sparse_segtype_default
global/lvdisplay_shows_full_device_path
global/use_lvmetad
global/thin_check_executable
global/thin_dump_executable
global/thin_repair_executable
global/thin_check_options
global/thin_repair_options
global/thin_disabled_features
global/cache_check_executable
global/cache_dump_executable
global/cache_repair_executable
global/cache_check_options
global/cache_repair_options
global/system_id_source
global/system_id_file

$ lvmconfig --type list global --atversion 2.2.50
global/umask
global/test
global/units
global/suffix
global/activation
global/fallback_to_lvm1
global/format
global/format_libraries
global/segment_libraries
global/proc
global/locking_type
global/wait_for_locks
global/fallback_to_clustered_locking
global/fallback_to_local_locking
global/locking_dir
global/library_dir
global/locking_library
2015-04-29 11:58:14 +02:00
..
.exported_symbols
.gitignore
args.h refactor: dumpconfig: keep --withcomments to display full comment and use --withsummary for one line summary 2015-04-29 11:14:18 +02:00
cmdnames.h
commands.h lvmconfig: add --type list and -l|--list 2015-04-29 11:58:14 +02:00
dmsetup.c
dumpconfig.c lvmconfig: add --type list and -l|--list 2015-04-29 11:58:14 +02:00
errors.h
formats.c
lvchange.c
lvconvert_poll.c update copyright info in various files 2015-04-28 22:45:19 +02:00
lvconvert_poll.h
lvconvert.c
lvcreate.c
lvdisplay.c
lvextend.c
lvm2cmd-static.c
lvm2cmd.c
lvm2cmd.h
lvm2cmdline.h
lvm-static.c
lvm.c
lvmchange.c
lvmcmdlib.c
lvmcmdline.c
lvmdiskscan.c
lvreduce.c
lvremove.c
lvrename.c
lvresize.c
lvscan.c
Makefile.in
polldaemon.c polldaemon: remove redundant log messages 2015-04-28 23:19:20 +02:00
polldaemon.h
pvchange.c
pvck.c
pvcreate.c
pvdisplay.c
pvmove_poll.c update copyright info in various files 2015-04-28 22:45:19 +02:00
pvmove_poll.h
pvmove.c pvmove: make log messages more comprehensible 2015-04-28 22:45:54 +02:00
pvremove.c
pvresize.c
pvscan.c
reporter.c
segtypes.c
stub.h
tags.c
toollib.c
toollib.h
tools.h
vgcfgbackup.c
vgcfgrestore.c
vgchange.c
vgck.c
vgconvert.c
vgcreate.c
vgdisplay.c
vgexport.c
vgextend.c
vgimport.c
vgmerge.c
vgmknodes.c
vgreduce.c
vgremove.c
vgrename.c
vgscan.c
vgsplit.c