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 <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-10-25 21:20:21 -07:00
parent 8921fc7c7b
commit 2e32a0ee2d

View File

@ -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,
)