diff --git a/src/tm_mad/shared/postmigrate b/src/tm_mad/shared/postmigrate deleted file mode 100755 index c6ab193730..0000000000 --- a/src/tm_mad/shared/postmigrate +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -DRIVER_PATH=$(dirname $0) - -DISK_COUNT=$(onevm show $4 -x|grep DISK_ID| wc -l) -TMS=$(onevm show $4 -x|sed -rn 's/[[:space:]]*<\!\[CDATA\[([^]]*).*/\1/p') - -XPATH="${DRIVER_PATH}/../../datastore/xpath.rb -b $7" - -for i in `seq 1 $DISK_COUNT`; do - TM=`echo $TMS|cut -d" " -f$i` - DISK_ID=`echo $i-1 | bc` - DEV=`ssh $1 "readlink $3/disk.$DISK_ID"` - ${DRIVER_PATH}/../$TMS/postmigrate "$1" "$2" "$DEV" -done - -exit 0 diff --git a/src/tm_mad/shared/postmigrate b/src/tm_mad/shared/postmigrate new file mode 120000 index 0000000000..d580dd8260 --- /dev/null +++ b/src/tm_mad/shared/postmigrate @@ -0,0 +1 @@ +../common/postmigrate \ No newline at end of file diff --git a/src/tm_mad/shared/premigrate b/src/tm_mad/shared/premigrate deleted file mode 100755 index df9ad4b168..0000000000 --- a/src/tm_mad/shared/premigrate +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -DRIVER_PATH=$(dirname $0) - -DISK_COUNT=$(onevm show $4 -x|grep DISK_ID| wc -l) -TMS=$(onevm show $4 -x|sed -rn 's/[[:space:]]*<\!\[CDATA\[([^]]*).*/\1/p') - -XPATH="${DRIVER_PATH}/../../datastore/xpath.rb -b $7" - -for i in `seq 1 $DISK_COUNT`; do - TM=`echo $TMS|cut -d" " -f$i` - DISK_ID=$(($i-1)) - DEV=`ssh $1 "readlink $3/disk.$DISK_ID"` - ${DRIVER_PATH}/../$TMS/premigrate "$1" "$2" "$DEV" -done - -exit 0 diff --git a/src/tm_mad/shared/premigrate b/src/tm_mad/shared/premigrate new file mode 120000 index 0000000000..0e108a8a26 --- /dev/null +++ b/src/tm_mad/shared/premigrate @@ -0,0 +1 @@ +../common/premigrate \ No newline at end of file