From: Sage Weil Date: Fri, 26 Oct 2012 04:20:21 +0000 (-0700) Subject: ceph-disk-prepare: fix journal partition creation X-Git-Tag: v0.54~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e32a0ee2d9e2a3bf5b138f50efc5fba8d5b8660;p=ceph.git ceph-disk-prepare: fix journal partition creation The end value needs to have + to indicate it is relative to wherever the start is. Signed-off-by: Sage Weil --- diff --git a/src/ceph-disk-prepare b/src/ceph-disk-prepare index 66f889aff42..d8e59eac4cc 100755 --- a/src/ceph-disk-prepare +++ b/src/ceph-disk-prepare @@ -314,7 +314,7 @@ def prepare( # then again nothing guards the partition table from races # anyway num = get_free_partition_index(dev=journal) - journal_part = '{num}:0:{size}M'.format( + journal_part = '{num}:0:+{size}M'.format( num=num, size=journal_size, )