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:
parent
10092dc02d
commit
8dd84cdcc3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user