Whamcloud - gitweb
LU-16723 libcfs: refactor parser to be simpler 83/50583/19
authorTimothy Day <timday@amazon.com>
Sat, 8 Apr 2023 00:44:30 +0000 (00:44 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 May 2023 19:12:55 +0000 (19:12 +0000)
commit21080400f90e80d5864936465aa85830bee34131
treeacabe4132682b6ff850352145be81a36912e8a7b
parent20683c0d6c3e7d04293238d0a68e862c9bc46d40
LU-16723 libcfs: refactor parser to be simpler

The parser code has a lot of unused complexity that can be
streamlined. Refactor the parser makes the interface simpler
from a development perspective and can provide a consistent
user experience for all of the lustre utilities.

All functions which are not used outside of the parser have
been made static. Functions which don't appear to be used at
all have been removed.

The file headers have been standardized and the SDX text
added. The function names have been changed to be more standard.

Test-Parameters: testlist=sanity env=ONLY=60a,ONLY_REPEAT=10
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I3354f213de424f51aef94c840083a4cb781d7aae
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50583
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/util/parser.h
libcfs/include/libcfs/util/string.h
libcfs/libcfs/util/parser.c
lnet/utils/lnetctl.c
lnet/utils/lst.c
lustre/utils/lctl.c
lustre/utils/lfs.c
lustre/utils/llsom_sync.c
lustre/utils/obd.c