X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Flockorder.sh;h=122df46b0e5b6a072bb5752357b3463e454b7df3;hb=b031b90a0320401db1ae474c4cbd89226bf5f2c9;hp=10e9573ec540793dfa5117298ef019280476d557;hpb=9a78f322b659e392b266762b8069d79f0d5f42a5;p=fs%2Flustre-release.git diff --git a/lustre/tests/lockorder.sh b/lustre/tests/lockorder.sh index 10e9573..122df46 100644 --- a/lustre/tests/lockorder.sh +++ b/lustre/tests/lockorder.sh @@ -7,9 +7,9 @@ STATMANY=${STATMANY:-statmany} UNLINKMANY=${UNLINKMANY:-unlinkmany} LCTL=${LCTL:-lctl} -MOUNT1=${MOUNT1:-/mnt/lustre1} +MOUNT=${MOUNT:-/mnt/lustre} MOUNT2=${MOUNT2:-/mnt/lustre2} -DIR=${DIR:-$MOUNT1} +DIR=${DIR:-$MOUNT} DIR2=${DIR2:-$MOUNT2} COUNT=${COUNT:-100} @@ -28,7 +28,7 @@ NUM=0 MINDIR=$DIR MAXDIR=$DIR -MINRES=2000000000 +MINRES=4294967295 MAXRES=0 mkdir -p $MINDIR while [ $MINRES -gt $MAXRES ]; do @@ -42,7 +42,7 @@ while [ $MINRES -gt $MAXRES ]; do MAXDIR=$DIRTMP MAXRES=$DIRRES fi - if [ $FILERES -lt $MINRES ]; then + if [ $FILERES -lt $MINRES -o -z "$MINFILE" ]; then [ -f "$MINFILE" ] && rm $MINFILE MINFILE=$FILETMP MINRES=$FILERES