From 7ca6b0d78a6dc08231efa30de04cde8a2745f135 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Fri, 7 Feb 2014 12:17:00 +0100 Subject: [PATCH] Feature #2556: Refactor Vladislav Gorbunov's contribution --- src/datastore_mad/remotes/ceph/mkfs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/datastore_mad/remotes/ceph/mkfs b/src/datastore_mad/remotes/ceph/mkfs index 216a9677cd..4556884ca7 100755 --- a/src/datastore_mad/remotes/ceph/mkfs +++ b/src/datastore_mad/remotes/ceph/mkfs @@ -88,9 +88,6 @@ 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` @@ -99,18 +96,21 @@ REGISTER_CMD=$(cat <