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>
wait_mds_ost_sync
wait_delete_completed
BLOCKS2=$(df -P $MOUNT | tail -n 1 | awk '{ print $3 }')
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"
}
run_test 89 "no disk space leak on late ost connection"