<!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/16/2010 03:10 AM, Tristan Ye wrote:
<blockquote
 cite="mid:1268723421-24872-2-git-send-email-tristan.ye@oracle.com"
 type="cite">
  <pre wrap="">Currently, resizing of an ocfs2 volume will align with clustersize,
in that case, we will definitely failed at growing volume size to
the partion size if partitionsize didn't align to clustersize:

Instead, we'd better let tunefs.ocfs2 determine the largest size
it could afford by specify size as NULL(means grow the size to end).

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 |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/programs/resize_test/resize_test.sh b/programs/resize_test/resize_test.sh
index bc483d1..7177d5f 100755
--- a/programs/resize_test/resize_test.sh
+++ b/programs/resize_test/resize_test.sh
@@ -236,7 +236,7 @@ normal_resize_test() {
                 dbgout=${outdir}/${YMD}.dbg
 
                 blocks=$[${blocks}+${incblk}]
-                if [ ${blocks} -gt ${partsz} ]
+                if [ ${blocks} -ge ${partsz} ]
                 then
                         blocks=0
                 fi
@@ -306,6 +306,9 @@ do_backup_test() {
         fi
         
         do_mount
+        if [ ${end} -ge ${partsz} ];then
+                end=0
+        fi
         do_tunefs ${tuneout} ${end}
         do_umount
         do_fsck ${fsckout}
@@ -362,7 +365,7 @@ online_boundary_test() {
         echo "y"|${MKFS} -b ${blocksz} -C ${clustsz} -N 4 -L ${label} ${device} ${start} &gt;/dev/null
 
         do_mount
-        do_tunefs ${tuneout} ${partsz}
+        do_tunefs ${tuneout} 0
         do_umount
         do_fsck ${fsckout}
 
  </pre>
</blockquote>
</body>
</html>