From a9704ed2d81d0d4912b95dca5bfdedf3537706ee Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Mon, 1 Apr 2024 16:56:49 -0600 Subject: [PATCH] LU-17675 tests: sanity-flr/61a set atime_diff=1 for statx Lower mdd.*.atime_diff=1 for this test so that the MDT inode atime is updated during the test. Otherwise, statx() will get only MDT atime and not OST atime, and the test is not running long enough for the MDT inode atime to be updated. Test-Parameters: trivial testlist=sanity env=ONLY=61a,ONLY_REPEAT=100 clientdistro=el9.3 Signed-off-by: Andreas Dilger Change-Id: I6518260d0dcb283faf4bc6a8049cd61abaf6978b Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54647 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Shaun Tancheff Reviewed-by: Oleg Drokin --- lustre/tests/sanity-flr.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index 95e0d00..26285ca 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -28,14 +28,6 @@ if [[ "$ost1_FSTYPE" == "zfs" ]]; then ALWAYS_EXCEPT+=" 49a " fi -if [ -r /etc/redhat-release ]; then - rhel_version=$(cat /etc/redhat-release | - sed -e 's/^[^0-9.]*//g' | sed -e 's/[ ].*//') - if (( $(version_code $rhel_version) >= $(version_code 9.3.0) )); then - always_except LU-17675 61a - fi -fi - build_test_filter [[ "$MDS1_VERSION" -ge $(version_code 2.10.56) ]] || @@ -3156,9 +3148,14 @@ check_times_61() { test_61a() { # LU-14508 local file=$DIR/$tdir/$tfile + local old_diff=($(do_facet mds1 "$LCTL get_param -n mdd.*.atime_diff")) + local mdts=$(comma_list $(mdts_nodes)) local -a tim local nap=5 + do_nodes $mdts "$LCTL set_param mdd.*.atime_diff=1" + stack_trap "do_nodes $mdts $LCTL set_param mdd.*.atime_diff=$old_diff" + mkdir -p $DIR/$tdir echo "create $file" $LFS setstripe -E1M -Eeof $file || error "setstripe $file failed" -- 1.8.3.1