[Ocfs2-test-devel] [PATCH 1/1] Resize_test.sh: Fix a silly bug of resize_test.sh.

Marcos E. Matsunaga Marcos.Matsunaga at oracle.com
Mon Mar 15 07:06:22 PDT 2010


Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>

Regards,

Marcos Eduardo Matsunaga

Oracle USA
Linux Engineering

“The statements and opinions expressed here are my own and do not
necessarily represent those of Oracle Corporation.”


On 03/15/2010 09:15 AM, Tristan Ye wrote:
> The bug was exposed when resizing fs size to the end of volume. it's
> really my fault since my last patch of resize_test.sh introduced this;-(
>
> Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
> ---
>  programs/resize_test/resize_test.sh |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/programs/resize_test/resize_test.sh b/programs/resize_test/resize_test.sh
> index 2ed93e8..b779d97 100755
> --- a/programs/resize_test/resize_test.sh
> +++ b/programs/resize_test/resize_test.sh
> @@ -197,7 +197,7 @@ do_tunefs() {
>  	 if [ "$((${blk}%${bpc}))" != "0" ];then
>  		blk=$((${blk}+${bpc}-$((${blk}%${bpc}))))
>  		if [ ${blk} -gt ${partsz} ]; then
> -			${blk}=$((${blk}-${bpc}))
> +			blk=$((${blk}-${bpc}))
>  		fi
>  	 fi
>  	 if [ "${blocks}" != "${blk}" ]; then
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-test-devel/attachments/20100315/80e3baec/attachment.html 


More information about the Ocfs2-test-devel mailing list