Whamcloud - gitweb
LU-16916 tests: fix client_evicted() not to ignore EOPNOTSUPP 68/51668/4
authorJian Yu <yujian@whamcloud.com>
Fri, 14 Jul 2023 05:22:18 +0000 (13:22 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Oct 2023 13:49:38 +0000 (13:49 +0000)
commitff9e29d3b534959261950e45595f970d7f39213f
tree91c6b670b69c012d30d98de2f04987790bf7cf05
parentc20d23cd92c5bc748a618e9ed96e6eddd794ab45
LU-16916 tests: fix client_evicted() not to ignore EOPNOTSUPP

After RHEL 9.x or Ubuntu 22.04 client is evicted, "lfs df" returns
error code 95 (EOPNOTSUPP), which is ignored in check_lfs_df_ret_val()
and then causes client_evicted() to ingore that error.

This patch fixes client_evicted() to check the return value
from "lfs df" directly so as not to ignore EOPNOTSUPP.

Lustre-change: https://review.whamcloud.com/51667
Lustre-commit: a5a9ded43b72238c2df8e0a74f03151ea3d4ce99

Test-Parameters: trivial clientdistro=el9.2 testlist=replay-vbr
Test-Parameters: trivial clientdistro=el8.8 testlist=replay-vbr

Change-Id: I633ae8769fc563b8068f433e2afae29463ac5553
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51668
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/tests/test-framework.sh