Feature #2556: Create image without filesystem on ceph datastore

This commit is contained in:
Vladislav Gorbunov authored and Jaime Melis committed 2014-02-07 12:14:40 +01:00
1 parent 97a4418388
commit d1dc27167f
1 file changed
+4
+4
View File
@@ -88,6 +88,9 @@ if [ "$FSTYPE" = "save_as" ]; then
exit 0
fi
if [ "$FSTYPE" = "raw" ]; then
REGISTER_CMD="$QEMU_IMG create rbd:$RBD_SOURCE ${SIZE}M"
else
# ------------ Create the image in the repository ------------
MKFS_CMD=`mkfs_command $TMP_DST $FSTYPE $SIZE`
@@ -107,6 +110,7 @@ REGISTER_CMD=$(cat <<EOF
$RM -f $TMP_DST
EOF
)
fi
ssh_exec_and_log "$DST_HOST" "$REGISTER_CMD" \
"Error registering $RBD_SOURCE in $DST_HOST"