X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Flockorder.sh;h=5134a2dd711dadeac99720bbcca832a581514ab3;hb=63de3bfeb1a127bbc8e47c0391c98029394ff411;hp=cf5051b5270065d5cab75005755f693ce4ff7821;hpb=d9694cb64f8b3d4762a06520ced4edcb8235ec30;p=fs%2Flustre-release.git diff --git a/lustre/tests/lockorder.sh b/lustre/tests/lockorder.sh index cf5051b..5134a2d 100644 --- a/lustre/tests/lockorder.sh +++ b/lustre/tests/lockorder.sh @@ -46,7 +46,7 @@ while [ $MINRES -gt $MAXRES ]; do MINFILE=$FILETMP MINRES=$FILERES else - rm $TMPFILE + rm $FILETMP fi NUM=$(($NUM + 1)) done @@ -60,7 +60,9 @@ $LCTL mark "start dir: $LOCKDIR=$MAXRES file: $LOCKFILE=$MINRES" $CREATEMANY -l$LOCKFILE $LOCKFILE -$COUNT & CR_PID=$! -sleep 1 +while ! test -f ${LOCKFILE}1 ; do + sleep 1 +done # this will lock $DIR and ${LOCKFILE}0 $STATMANY -s $DIR2/lockdir/lockfile 1 -$COUNT &