Whamcloud - gitweb
LU-4218 tests: fix for facet_host()
[fs/lustre-release.git] / lustre / tests / replay-single-lmv.sh
index fbc53c9..21dd7ca 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 set -e
 #set -v
@@ -21,7 +21,7 @@ SETUP=${SETUP:-"setup"}
 CLEANUP=${CLEANUP:-"stopall"}
 
 if [ "$ONLY" == "cleanup" ]; then
-    sysctl -w lnet.debug=0 || true
+    lctl set_param debug=0 || true
     $CLEANUP
     exit 0
 fi
@@ -39,6 +39,11 @@ fi
 
 mkdir -p $DIR
 
+# LU-482 Avert LVM and VM inability to flush caches in pre .33 kernels
+if [ $LINUX_VERSION_CODE -lt $(version_code 2.6.33) ]; then
+    sync
+    do_facet $SINGLEMDS sync
+fi
 
 test_0() {
     replay_barrier mds1
@@ -108,6 +113,6 @@ test_3b() {
 }
 run_test 3b "mkdir cross-node dir (fail mds with inode)"
 
-equals_msg test complete, cleaning up
+complete $SECONDS
 $CLEANUP