From c7b8ecade6cdd591aa202e4a2afb53ed20f43cd8 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Tue, 25 Oct 2011 18:12:34 +0800 Subject: [PATCH] LU-774 test: wait till space from previous tests is released Signed-off-by: Bobi Jam Change-Id: Idf4933f9b40c74b99bf763eb896680a4e0c942ff Reviewed-on: http://review.whamcloud.com/1588 Reviewed-by: Yu Jian Tested-by: Hudson Reviewed-by: Oleg Drokin Tested-by: Maloo --- lustre/tests/replay-ost-single.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lustre/tests/replay-ost-single.sh b/lustre/tests/replay-ost-single.sh index 7a74166..d81acbf 100755 --- a/lustre/tests/replay-ost-single.sh +++ b/lustre/tests/replay-ost-single.sh @@ -177,6 +177,12 @@ test_6() { f=$TDIR/$tfile rm -f $f sync && sleep 2 && sync # wait for delete thread + + # wait till space is returned, following + # (( $before > $after_dd)) test counting on that + wait_mds_ost_sync || return 4 + wait_destroy_complete || return 5 + before=`kbytesfree` dd if=/dev/urandom bs=4096 count=1280 of=$f || return 28 lfs getstripe $f @@ -208,6 +214,12 @@ test_7() { f=$TDIR/$tfile rm -f $f sync && sleep 5 && sync # wait for delete thread + + # wait till space is returned, following + # (( $before > $after_dd)) test counting on that + wait_mds_ost_sync || return 4 + wait_destroy_complete || return 5 + before=`kbytesfree` dd if=/dev/urandom bs=4096 count=1280 of=$f || return 4 sync -- 1.8.3.1