Whamcloud - gitweb
LU-1867 tests: replay-single test_89: @@ FAIL: 4 blocks leaked
authoryangsheng <ys@whamcloud.com>
Sat, 29 Sep 2012 09:18:53 +0000 (17:18 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 1 Oct 2012 13:17:10 +0000 (09:17 -0400)
The config llog data will changed while OST remount. It may
impact 'df' output. So we should allow extra one block size
different(4k).

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I663685d55a5a31af48d541e08e9e97fed2b8e25c
Reviewed-on: http://review.whamcloud.com/4130
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/replay-single.sh

index fb817fc..175a9ad 100755 (executable)
@@ -2279,7 +2279,8 @@ test_89() {
         wait_mds_ost_sync
        wait_delete_completed
         BLOCKS2=$(df -P $MOUNT | tail -n 1 | awk '{ print $3 }')
-        [ "$BLOCKS1" == "$BLOCKS2" ] || error $((BLOCKS2 - BLOCKS1)) blocks leaked
+       [ $((BLOCKS2 - BLOCKS1)) -le 4  ] || \
+               error $((BLOCKS2 - BLOCKS1)) blocks leaked
 }
 
 run_test 89 "no disk space leak on late ost connection"