[Ocfs2-test-devel] [PATCH 1/1] Resize_test.sh: Fix a silly bug of resize_test.sh.
Tristan Ye
tristan.ye at oracle.com
Mon Mar 15 06:15:11 PDT 2010
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
--
1.5.5
More information about the Ocfs2-test-devel
mailing list