From: Alex Zhuravlev Date: Sun, 1 Nov 2020 11:04:54 +0000 (+0300) Subject: LU-14102 tests: add a pause in open-close in sanity/160l X-Git-Tag: 2.13.57~66 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=23513cb0661881b9e98b67ac279d8e99aeb32670;p=fs%2Flustre-release.git 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 --- 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"