From: Andreas Dilger Date: Thu, 1 Dec 2022 00:04:26 +0000 (-0700) Subject: LU-13705 utils: fix llstat -n option X-Git-Tag: 2.15.53~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b455b42fa8752bb3fbac9b2501e2092ec66b3958;p=fs%2Flustre-release.git 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 --- 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;