From: Vitaliy Kuznetsov Date: Fri, 10 Nov 2023 20:35:56 +0000 (+0100) Subject: LU-16827 obdfilter: Fix "emfperf obdfilter-survey" error X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d7ca163f41ddbeb0a246e52461facffd4a2f6217;p=fs%2Flustre-release.git LU-16827 obdfilter: Fix "emfperf obdfilter-survey" error This patch fixes the definition of the lctl variable. It changes the logic so that the LCTL value is assigned only when it was defined earlier. Lustre-change: https://review.whamcloud.com/53083 Lustre-commit: 95387e580a639eb9ff0648aecf69d0a4951325ef Test-Parameters: trivial testlist=obdfilter-survey Signed-off-by: Vitaliy Kuznetsov Change-Id: I4dfd7e3d1f78208b33b897d8e6680e59b690014c Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53084 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index 00ade8a..cd8a8a6 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -342,7 +342,7 @@ if [ "$lustre_root" == " " ]; then fi if [ -z "$lustre_root" ]; then - lctl=$LCTL + lctl=${LCTL:-lctl} else lctl=${lustre_root}/utils/lctl fi