From c69ee2fbac9bc485244f60d1a165a43152b27a1f Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Thu, 22 Mar 2012 19:59:07 +0100 Subject: [PATCH] minor bug in iscsi/clone --- src/tm_mad/iscsi/clone | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/tm_mad/iscsi/clone b/src/tm_mad/iscsi/clone index 322f2a511e..cf3a72449a 100755 --- a/src/tm_mad/iscsi/clone +++ b/src/tm_mad/iscsi/clone @@ -16,6 +16,23 @@ # limitations under the License. # #--------------------------------------------------------------------------- # +# clone fe:SOURCE host:remote_system_ds/disk.i size +# - fe is the front-end hostname +# - SOURCE is the path of the disk image in the form DS_BASE_PATH/disk +# - host is the target host to deploy the VM +# - remote_system_ds is the path for the system datastore in the host + +SRC=$1 +DST=$2 + +if [ -z "${ONE_LOCATION}" ]; then + TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh +else + TMCOMMON=$ONE_LOCATION/var/remotes/tm/tm_common.sh +fi + +. $TMCOMMON + log_error "CLONE not supported for TM_ISCSI. Use persistent images" exit 1