raw-image-ceph.diff

Vladislav Gorbunov, 12/11/2013 04:38 AM

Download (577 Bytes)

View differences:

/var/lib/one/remotes/datastore/ceph/mkfs 2013-12-11 16:25:33.240999936 +1200
88 88
    exit 0
89 89
fi
90 90

  
91
if [ "$FSTYPE" = "raw" ]; then
92
    REGISTER_CMD="$QEMU_IMG create rbd:$RBD_SOURCE ${SIZE}M"
93
else
91 94
# ------------ Create the image in the repository ------------
92 95

  
93 96
MKFS_CMD=`mkfs_command $TMP_DST $FSTYPE $SIZE`
......
107 110
    $RM -f $TMP_DST
108 111
EOF
109 112
)
113
fi
110 114

  
111 115
ssh_exec_and_log "$DST_HOST" "$REGISTER_CMD" \
112 116
    "Error registering $RBD_SOURCE in $DST_HOST"