Whamcloud - gitweb
Implement saving of previous value of max_dirty_mb, as suggested by Andreas
authorgreen <green>
Mon, 15 Dec 2003 10:36:15 +0000 (10:36 +0000)
committergreen <green>
Mon, 15 Dec 2003 10:36:15 +0000 (10:36 +0000)
lustre/tests/sanity.sh

index dab7b6d..51fe721 100644 (file)
@@ -1590,6 +1590,7 @@ run_test 62 "verify obd_match failure doesn't LBUG (should -EIO)"
 
 # bug 2319 - osic_wait() interrupted causes crash because of invalid waitq.
 test_63() {
 
 # bug 2319 - osic_wait() interrupted causes crash because of invalid waitq.
 test_63() {
+       MAX_DIRTY_MB=`cat /proc/fs/lustre/osc/*/max_dirty_mb | head -1`
        for i in /proc/fs/lustre/osc/*/max_dirty_mb ; do
        echo 0 > $i
        done
        for i in /proc/fs/lustre/osc/*/max_dirty_mb ; do
        echo 0 > $i
        done
@@ -1601,7 +1602,7 @@ test_63() {
        done
 
        for i in /proc/fs/lustre/osc/*/max_dirty_mb ; do
        done
 
        for i in /proc/fs/lustre/osc/*/max_dirty_mb ; do
-               echo $[ 64 ] > $i
+               echo $MAX_DIRTY_MB > $i
        done
        true
 }
        done
        true
 }