Whamcloud - gitweb
LU-17416 utils: option for lctl get_param to skip links 36/55236/12
authorFrederick Dilger <fdilger@whamcloud.com>
Mon, 27 May 2024 21:38:51 +0000 (17:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Jun 2024 01:13:33 +0000 (01:13 +0000)
commite7b898661983da4ca218837f657d507ffba97cda
tree9d991a2a180a6ed073bfb5bacaf2a6cb4b123936
parent9e7b239bbd26b601127073bb0c6789cb9def7073
LU-17416 utils: option for lctl get_param to skip links

Added new --links and --no-links options for 'lctl get_param' and
'lctl list_param' to avoid following symlinks. Useful when combined
with a command like "lctl get_param -R '*'" which can dump a lot of
duplicate data due to symlinks under lov.*.target_obds and
lmv.*.target_obds pointing back to their respective osc.* and mdc.*
trees. By default --links is enabled to for lctl get_param to
continue to operate as it did before this patch.

Additionally, long options have been added for all previous options
in {list, get, set}_param to update command options to current
standards. This will also facilitate adding new options in the future
as well as code maintenance and readability.

Signed-off-by: Frederick Dilger <fdilger@whamcloud.com>
Change-Id: I24115835f5045623f78fa2045dc3e0ce0b795316
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55236
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lctl-get_param.8
lustre/doc/lctl-list_param.8
lustre/doc/lctl-set_param.8
lustre/tests/sanity.sh
lustre/utils/lctl.c
lustre/utils/lctl_thread.h
lustre/utils/lustre_cfg.c