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:
parent
7e127b1f33
commit
6278fd7ecb
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user