mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
bug #3446: Do not clone Ceph volumes if they already exist
This commit is contained in:
1 parent
4e4930050d
commit
6dea3d1260
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user