From d7ca163f41ddbeb0a246e52461facffd4a2f6217 Mon Sep 17 00:00:00 2001 From: Vitaliy Kuznetsov Date: Fri, 10 Nov 2023 21:35:56 +0100 Subject: [PATCH] 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 --- lustre-iokit/obdfilter-survey/obdfilter-survey | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.3.1