Whamcloud - gitweb
LU-16827 obdfilter: Fix "emfperf obdfilter-survey" error
authorVitaliy Kuznetsov <vkuznetsov@ddn.com>
Fri, 10 Nov 2023 20:35:56 +0000 (21:35 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 14 Nov 2023 22:37:24 +0000 (22:37 +0000)
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 <vkuznetsov@ddn.com>
Change-Id: I4dfd7e3d1f78208b33b897d8e6680e59b690014c
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53084
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre-iokit/obdfilter-survey/obdfilter-survey

index 00ade8a..cd8a8a6 100755 (executable)
@@ -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