<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000066" bgcolor="#ffffcc">
<tt>Signed-off-by: Marcos Matsunaga <a class="moz-txt-link-rfc2396E" href="mailto:Marcos.Matsunaga@oracle.com">&lt;Marcos.Matsunaga@oracle.com&gt;</a></tt><br>
<pre class="moz-signature" cols="72">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.”
</pre>
<br>
On 03/15/2010 09:15 AM, Tristan Ye wrote:
<blockquote
 cite="mid:1268658911-22154-1-git-send-email-tristan.ye@oracle.com"
 type="cite">
  <pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:tristan.ye@oracle.com">&lt;tristan.ye@oracle.com&gt;</a>
---
 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
  </pre>
</blockquote>
</body>
</html>