1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-31 01:47:11 +03:00

feature #1727: fix bug setting ORIGINAL_SIZE

This commit is contained in:
Anton Todorov 2015-07-24 10:12:29 -04:00 committed by Javi Fontan
parent 7e127b1f33
commit 6278fd7ecb
3 changed files with 3 additions and 9 deletions

View File

@ -90,9 +90,7 @@ http://*)
*)
log "Cloning $SRC_PATH in $DST"
if [ -n $ORIGINAL_SIZE ]; then
ORIGINAL_SIZE="0"
fi
ORIGINAL_SIZE=${ORIGINAL_SIZE:-0}
if [ "$SIZE" -ge "$ORIGINAL_SIZE" ]; then
RESIZE_CMD="; qemu-img resize ${DST_PATH} ${SIZE}M"

View File

@ -95,9 +95,7 @@ http://*)
*)
log "Cloning $SRC_PATH in $DST"
if [ -n $ORIGINAL_SIZE ]; then
ORIGINAL_SIZE="0"
fi
ORIGINAL_SIZE=${ORIGINAL_SIZE:-0}
if [ "$SIZE" -ge "$ORIGINAL_SIZE" ]; then
RESIZE_CMD="; qemu-img resize ${DST_PATH} ${SIZE}M"

View File

@ -93,9 +93,7 @@ http://*)
"Error copying $SRC to $DST"
fi
if [ -n $ORIGINAL_SIZE ]; then
ORIGINAL_SIZE="0"
fi
ORIGINAL_SIZE=${ORIGINAL_SIZE:-0}
if [ "$SIZE" -ge "$ORIGINAL_SIZE" ]; then
RESIZE_CMD="qemu-img resize ${DST_PATH} ${SIZE}M"