Whamcloud - gitweb
b=22378 Correct MDS client stats
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Mon, 18 Oct 2010 19:20:47 +0000 (15:20 -0400)
committerAndrew Perepechko <andrew.perepechko@oracle.com>
Mon, 24 Jan 2011 08:03:39 +0000 (11:03 +0300)
sanity test_133b fails with "The getattr counter on mds is wrong"
message.

i=Andrew Perepechko

lustre/tests/sanity.sh

index b068b15..8da8ac4 100644 (file)
@@ -6102,6 +6102,7 @@ test_133b() {
        local testdir=$DIR/${tdir}/stats_testdir
        mkdir -p ${testdir} || error "mkdir failed"
        touch ${testdir}/${tfile} || "touch failed"
+       cancel_lru_locks mdc
 
        # clear stats.
        local dev=$(get_mds_mdt_device_proc_path)
@@ -6110,7 +6111,7 @@ test_133b() {
 
        # extra mdt stats verification.
        stat ${testdir}/${tfile} || error "stat failed"
-       check_stats mds "getattr" 1
+       check_stats mds "getattr" 0
        chmod 444 ${testdir}/${tfile} || error "chmod failed"
        check_stats mds "setattr" 1
        $LFS df || error "lfs failed"