mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
Feature #2556: Create image without filesystem on ceph datastore
This commit is contained in:
1 parent
97a4418388
commit
d1dc27167f
1 file changed
+4
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user