From 742597c1aa7f4f0a021866fedf446d174f53e500 Mon Sep 17 00:00:00 2001 From: grev Date: Fri, 14 Dec 2007 09:55:07 +0000 Subject: [PATCH] b=13306 i=Adilger wait delete completed before check kbytesavail --- 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 597f8fd..6ef903c 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3983,8 +3983,9 @@ test_115() { run_test 115 "verify dynamic thread creation====================" free_min_max () { - AVAIL=($(cat $LPROC/osc/*[oO][sS][cC]-[^M]*/kbytesavail)) - echo OST kbytes available: ${AVAIL[@]} + wait_delete_completed + AVAIL=($(cat $LPROC/osc/*[oO][sS][cC]-[^M]*/kbytesavail)) + echo OST kbytes available: ${AVAIL[@]} MAXI=0; MAXV=${AVAIL[0]} MINI=0; MINV=${AVAIL[0]} for ((i = 0; i < ${#AVAIL[@]}; i++)); do -- 1.8.3.1