From 0cc04f9aee182ed05d0a56a55289fce19b78800f Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 20 Jul 2016 18:52:21 +0200 Subject: [PATCH] bug #4640: disable pre/postmigrate for shared tm (cherry picked from commit 56fff9184f3784bc3cec16ca9bb04febe92d74d7) --- src/tm_mad/shared/postmigrate | 18 +----------------- src/tm_mad/shared/premigrate | 18 +----------------- 2 files changed, 2 insertions(+), 34 deletions(-) mode change 100755 => 120000 src/tm_mad/shared/postmigrate mode change 100755 => 120000 src/tm_mad/shared/premigrate 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