Whamcloud - gitweb
Always remove test files after test completes to avoid ENOSPC for other tests.
authoradilger <adilger>
Fri, 23 Jan 2004 01:52:39 +0000 (01:52 +0000)
committeradilger <adilger>
Fri, 23 Jan 2004 01:52:39 +0000 (01:52 +0000)
Allow slightly more space to be left in case of uneven OST usage.
b=974

lustre/tests/oos.sh

index eca0ee7..dc66c16 100755 (executable)
@@ -48,8 +48,9 @@ if [ $(($ORIGFREE - $LEFTFREE)) -lt $RECORDSOUT ]; then
        echo "$ORIGFREE - $LEFTFREE $RECORDSOUT"
 fi
 
-if [ $LEFTFREE -gt $((100 * $STRIPECOUNT)) ]; then
+if [ $LEFTFREE -gt $((400 * $STRIPECOUNT)) ]; then
        echo "ERROR: too much space left $LEFTFREE and -ENOSPC returned"
+       grep '[0-9]' /proc/fs/lustre/osc/OSC*MNT*/cur*
        SUCCESS=0
 fi
 
@@ -59,9 +60,10 @@ if [ $RECORDSOUT -ne $(($FILESIZE / 1024)) ]; then
         SUCCESS=0
 fi
 
+rm -f $OOS $LOG
+
 if [ $SUCCESS -eq 1 ]; then
        echo "Success!"
-
-       rm -f $OOS
-       rm -f $LOG
+else
+       exit 1
 fi