From a6ef680c23dfd11fa10348ec23e37446beb1b2c7 Mon Sep 17 00:00:00 2001 From: huanghua Date: Tue, 26 Sep 2006 07:29:20 +0000 Subject: [PATCH] correct grep pattern for osc --- lustre/tests/replay-single.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 4cf265b..99cd994 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -862,7 +862,7 @@ test_41() { do_facet client dd if=/dev/zero of=$f bs=4k count=1 || return 3 cancel_lru_locks osc # fail ost2 and read from ost1 - local osc2dev=`grep ${ost2_svc}-osc- $LPROC/devices | awk '{print $1}'` + local osc2dev=`grep ${ost2_svc}-osc-MDT $LPROC/devices | awk '{print $1}'` [ "$osc2dev" ] || return 4 $LCTL --device $osc2dev deactivate || return 1 do_facet client dd if=$f of=/dev/null bs=4k count=1 || return 3 @@ -1011,7 +1011,7 @@ test_48() { run_test 48 "MDS->OSC failure during precreate cleanup (2824)" test_50() { - local oscdev=`grep ${ost1_svc}-osc- $LPROC/devices | awk '{print $1}'` + local oscdev=`grep ${ost1_svc}-osc-MDT $LPROC/devices | awk '{print $1}'` [ "$oscdev" ] || return 1 $LCTL --device $oscdev recover && $LCTL --device $oscdev recover # give the mds_lov_sync threads a chance to run -- 1.8.3.1