]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk-prepare: fix journal partition creation
authorSage Weil <sage@inktank.com>
Fri, 26 Oct 2012 04:20:21 +0000 (21:20 -0700)
committerSage Weil <sage@inktank.com>
Tue, 30 Oct 2012 17:40:58 +0000 (10:40 -0700)
The end value needs to have + to indicate it is relative to wherever the
start is.

Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph-disk-prepare

index 66f889aff428260ccff88968a96e71518642901c..d8e59eac4ccd98d98a353287ffc9cb022a0fdfcd 100755 (executable)
@@ -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,
                 )