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

bug #3446: Do not clone Ceph volumes if they already exist

(cherry picked from commit 6dea3d12604e246a4a70ed80862c28a09f693bdd)
This commit is contained in:
Ruben S. Montero 2014-12-15 16:20:32 +01:00
parent 10092dc02d
commit 8dd84cdcc3

View File

@ -76,6 +76,8 @@ fi
CLONE_CMD=$(cat <<EOF
set -e
$RBD info $RBD_DST > /dev/null 2>&1 && exit 0
RBD_FORMAT=\$($RBD info $SRC_PATH | sed -n 's/.*format: // p')
if [ "\$RBD_FORMAT" = "2" ]; then