From b455b42fa8752bb3fbac9b2501e2092ec66b3958 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Wed, 30 Nov 2022 17:04:26 -0700 Subject: [PATCH] LU-13705 utils: fix llstat -n option The '-n' option was not configured as a valid option for getopt and would return an error if specified, instead of limiting the number of stats outputs as it should. Test-Parameters: trivial Fixes: 3e0d994fbf4c ("LU-13705 utils: improve llstat/llobdstat usability") Signed-off-by: Andreas Dilger Change-Id: Ifacafce741854fe12b80ced28e95bc7cc9254035 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49289 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Feng Lei Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/utils/llstat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/llstat b/lustre/utils/llstat index 29db880..4d7b249 100755 --- a/lustre/utils/llstat +++ b/lustre/utils/llstat @@ -46,7 +46,7 @@ my $ONE_MB = 1048576; # Command line parameter parsing use Getopt::Std; -getopts('cdghi:w:') or usage(); +getopts('cdghi:n:w:') or usage(); usage() if $opt_h; $clear = 1 if $opt_c; $debug = $opt_d if $opt_d; -- 1.8.3.1