From 23513cb0661881b9e98b67ac279d8e99aeb32670 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Sun, 1 Nov 2020 14:04:54 +0300 Subject: [PATCH] LU-14102 tests: add a pause in open-close in sanity/160l so that close has to update mtime and generate CL_MTIME record in the changelog. Signed-off-by: Alex Zhuravlev Change-Id: I118172229c86ed5c201299de7476678689bf4cab Reviewed-on: https://review.whamcloud.com/40508 Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8a6313d..0fdeb78 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -15174,8 +15174,7 @@ test_160l() { compare_mtime_changelog $DIR/$tdir/$tfile # Test CL_MTIME during close - dd if=/dev/urandom of=$DIR/$tdir/${tfile}_2 bs=1M count=64 || - error "cannot create file $DIR/$tdir/${tfile}_2" + $MULTIOP $DIR/$tdir/${tfile}_2 O_2w4096c || error "multiop failed" compare_mtime_changelog $DIR/$tdir/${tfile}_2 } run_test 160l "Verify that MTIME changelog records contain the parent FID" -- 1.8.3.1