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 <adilger@whamcloud.com>
Change-Id: I6518260d0dcb283faf4bc6a8049cd61abaf6978b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54647
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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) ]] ||
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"