X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Freplay-single-lmv.sh;h=21dd7ca74be7197d914b390d6a65e0f9d2c2cc54;hb=e1cf0bdf5df70824c92586ca46e36088e80215d5;hp=fbc53c97a8d3e3c5f5ab83b3ba2a75254ac765f5;hpb=d2d56f38da01001c92a09afc6b52b5acbd9bc13c;p=fs%2Flustre-release.git diff --git a/lustre/tests/replay-single-lmv.sh b/lustre/tests/replay-single-lmv.sh index fbc53c9..21dd7ca 100755 --- a/lustre/tests/replay-single-lmv.sh +++ b/lustre/tests/replay-single-lmv.sh @@ -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