Whamcloud - gitweb
LU-1630 scrub: adjust expected OI scrub speed for test
authorFan Yong <yong.fan@whamcloud.com>
Thu, 26 Jul 2012 06:10:38 +0000 (14:10 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jul 2012 04:38:41 +0000 (00:38 -0400)
Because of time error and schedule delay, the real OI scrub speed
may be not as accurate as original expectation. So need to adjust
the expectation to make them match.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I8ce95fef7ca39364a44418aabc39521f47bc150c
Reviewed-on: http://review.whamcloud.com/3457
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-scrub.sh

index 660c0bc..2706f36 100644 (file)
@@ -532,9 +532,8 @@ test_9() {
        [ $SPEED -lt 220 ] &&
                error "(11) Unexpected speed $SPEED, should not less than 220"
 
-       # (1024 + 100 * 10 + 300 * 10) / 20
-       [ $SPEED -gt 270 ] &&
-               error "(12) Unexpected speed $SPEED, should not more than 270"
+       [ $SPEED -gt 300 ] &&
+               error "(12) Unexpected speed $SPEED, should not more than 300"
 
        do_facet $SINGLEMDS \
                $LCTL set_param -n mdd.${MDT_DEV}.lfsck_speed_limit 0