From b4004806ec387915ba4e039b9bc1c563273ef08f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 25 Oct 2012 21:20:21 -0700 Subject: [PATCH] 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 (cherry picked from commit 2e32a0ee2d9e2a3bf5b138f50efc5fba8d5b8660) --- src/ceph-disk-prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk-prepare b/src/ceph-disk-prepare index 66f889aff4282..d8e59eac4ccd9 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, ) -- 2.39.5