From a2ebc165af1b28c8d23a81ab0efb28fb1318bf1d Mon Sep 17 00:00:00 2001 From: Qian Yingjin Date: Tue, 13 Aug 2024 11:09:55 +0800 Subject: [PATCH] LU-18100 pcc: fix the error when get pcc_async_threshold Add "head -n 1" when get llite.*.pcc_async_threshold in the sanity-pcc/test_102. Otherwise, it will cause the failure when restore the valule. Test-Parameters: trivial testlist=sanity-pcc Signed-off-by: Qian Yingjin Change-Id: I9618797a09dadbb358601ad602075547c02207c2 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56015 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Li Xi Reviewed-by: Oleg Drokin --- lustre/tests/sanity-pcc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-pcc.sh b/lustre/tests/sanity-pcc.sh index 92b9ec4..ba7ffad 100755 --- a/lustre/tests/sanity-pcc.sh +++ b/lustre/tests/sanity-pcc.sh @@ -4255,7 +4255,8 @@ test_102() { setup_pcc_mapping client \ "projid={0}\ roid=$HSM_ARCHIVE_NUMBER\ pccro=1" - local thresh=$($LCTL get_param -n llite.*.pcc_async_threshold) + local thresh=$($LCTL get_param -n llite.*.pcc_async_threshold | + head -n 1) stack_trap "do_facet $SINGLEAGT $LCTL set_param \ llite.*.pcc_async_threshold=$thresh" -- 1.8.3.1