]> git-server-git.apps.pok.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>
Mon, 12 Nov 2012 19:53:15 +0000 (11:53 -0800)
The end value needs to have + to indicate it is relative to wherever the
start is.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 2e32a0ee2d9e2a3bf5b138f50efc5fba8d5b8660)

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