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 <qian@ddn.com>
Change-Id: I9618797a09dadbb358601ad602075547c02207c2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56015
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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"