1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Merge pull request #160 from atodorov-storpool/tmCephOnSharedFs

tm/ceph {pre,post}migrate do nothing if not SYSTEM DS
This commit is contained in:
Jaime Melis 2017-05-12 14:23:29 +02:00 committed by GitHub
commit 8d4cfaf16b
2 changed files with 14 additions and 0 deletions

View File

@ -53,6 +53,13 @@ fi
#--------------------------------------------------------------------------------
if [ -n "$7" ]; then
log "Called from tm/$7 but I've nothing to do"
exit 0
fi
#--------------------------------------------------------------------------------
migrate_other "$@"
exec_and_log "$SSH $SRC_HOST rm -rf $DST_PATH"

View File

@ -53,6 +53,13 @@ fi
#--------------------------------------------------------------------------------
if [ -n "$7" ]; then
log "Called from tm/$7 but I've nothing to do"
exit 0
fi
#--------------------------------------------------------------------------------
DST_PATH_DIRNAME=`dirname $DST_PATH`
DST_PATH_BASENAME=`basename $DST_PATH`