Merge pull request #228 from alram/next

Fix journal partition creation

Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-04-19 15:16:41 -07:00
commit 095dc4f6ba

View File

@ -704,11 +704,9 @@ def prepare_journal_dev(
num = None
if journal == data:
# we're sharing the disk between osd data and journal;
# make journal be partition number 2, so it's pretty; put
# journal at end of free space so partitioning tools don't
# reorder them suddenly
# make journal be partition number 2, so it's pretty
num = 2
journal_part = '{num}:-{size}M:0'.format(
journal_part = '{num}:0:{size}M'.format(
num=num,
size=journal_size,
)