Whamcloud - gitweb
b=13664
authoryury <yury>
Thu, 20 Sep 2007 07:00:34 +0000 (07:00 +0000)
committeryury <yury>
Thu, 20 Sep 2007 07:00:34 +0000 (07:00 +0000)
r=adilger, nathan
- use cancel_lru_locks in replay-ost-single.sh test_4 to cancel cached locks instead of using buggy echo -n clear > $i/lru_size

lustre/tests/replay-ost-single.sh

index fa8571e..fe232a4 100755 (executable)
@@ -114,9 +114,7 @@ test_4() {
     verify=$ROOT/tmp/verify-$$
     dd if=/dev/urandom bs=4096 count=1280 | tee $verify > $DIR/$tfile
     # invalidate cache, so that we're reading over the wire
-    for i in /proc/fs/lustre/ldlm/namespaces/*-osc-*; do
-        echo -n clear > $i/lru_size
-    done
+    cancel_lru_locks osc
     cmp $verify $DIR/$tfile &
     cmppid=$!
     fail ost1