X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Freplay-single-lmv.sh;h=21dd7ca74be7197d914b390d6a65e0f9d2c2cc54;hb=43540e83b692dddb89055afbc393b79532659ad2;hp=c053978acf3e8c280bbc19f4d5e2bd9a8017c4f1;hpb=0fe560ea5dd4e582f2393f54de106e34a8b2c6ae;p=fs%2Flustre-release.git diff --git a/lustre/tests/replay-single-lmv.sh b/lustre/tests/replay-single-lmv.sh index c053978..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 @@ -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