From 9e0204a2543e6a2fa649f0c10b3c9ca1a2773d75 Mon Sep 17 00:00:00 2001 From: Dmitry Zogin Date: Fri, 10 Sep 2010 14:45:35 -0400 Subject: [PATCH] b=22378 Correct MDS client stats Fixing sanity.sh test_133c i=grev i=andrew.perepechko --- lustre/tests/sanity.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index e11e7a8..e525c48 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -6036,19 +6036,26 @@ test_133c() { local testdir=$DIR/${tdir}/stats_testdir mkdir -p ${testdir} || error "mkdir failed" + # verify obdfilter stats. + $LFS setstripe -c 1 -o 0 ${testdir}/${tfile} + sync + cancel_lru_locks osc + # clear stats. do_facet mds $LCTL set_param mds.*.stats=clear do_facet ost $LCTL set_param obdfilter.*.stats=clear - # verify obdfilter stats. - $LFS setstripe -c 1 -o 0 ${testdir}/${tfile} dd if=/dev/zero of=${testdir}/${tfile} bs=1024k count=1 || error "dd failed" sync + cancel_lru_locks osc check_stats ost "write" 1 - > ${testdir}/${tfile} || error "truncate failed" - check_stats ost "punch" 1 + dd if=${testdir}/${tfile} of=/dev/null bs=1k count=1 || error "dd failed" check_stats ost "read" 1 + + > ${testdir}/${tfile} || error "truncate failed" + check_stats ost "punch" 1 + rm -f ${testdir}/${tfile} || error "file remove failed" check_stats ost "destroy" 1 -- 1.8.3.1