From 391f5ea858aebbee2ae1beacfb89a1b2a761e9d6 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Tue, 7 Jan 2020 01:15:44 +0900 Subject: [PATCH] LU-12730 tests: sync file before checking LSOM In sanity test_807, make sure files are synced before checking LSOM info. Test-Parameters: trivial envdefinitions=ONLY=807 testlist=sanity,sanity,sanity,sanity Test-Parameters: envdefinitions=ONLY=807 testlist=sanity,sanity,sanity,sanity,sanity Test-Parameters: envdefinitions=ONLY=807 testlist=sanity,sanity,sanity,sanity,sanity Test-Parameters: envdefinitions=ONLY=807 testlist=sanity,sanity,sanity,sanity,sanity Signed-off-by: Sebastien Buisson Change-Id: Id6a452cc6b734d706581e70fed3770973ccce503 Reviewed-on: https://review.whamcloud.com/37146 Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 9fa70ee..dbed968 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -22856,7 +22856,7 @@ test_807() { error "truncate $tdir/trunc failed" local bs=1048576 - dd if=/dev/zero of=$DIR/$tdir/single_dd bs=$bs count=1 || + dd if=/dev/zero of=$DIR/$tdir/single_dd bs=$bs count=1 conv=fsync || error "write $tfile failed" # multi-client wirtes @@ -22877,7 +22877,8 @@ test_807() { wait ${pids[$i]} done - sleep 5 + do_rpc_nodes "$CLIENTS" cancel_lru_locks osc + do_nodes "$CLIENTS" "sync ; sleep 5 ; sync" $LSOM_SYNC -u $cl_user -m $FSNAME-MDT0000 $MOUNT check_lsom_data $DIR/$tdir/trunc check_lsom_data $DIR/$tdir/single_dd -- 1.8.3.1