diff options
author | Sage Weil <sage@inktank.com> | 2012-10-25 21:20:21 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-11-12 11:53:15 -0800 |
commit | b4004806ec387915ba4e039b9bc1c563273ef08f (patch) | |
tree | 1fc345d0607e2f73ad8cb301c79bc76edf458972 | |
parent | efac1bb19f1ca3851c7b51d96cb4e82d8d142a45 (diff) | |
download | ceph-b4004806ec387915ba4e039b9bc1c563273ef08f.tar.gz |
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>
(cherry picked from commit 2e32a0ee2d9e2a3bf5b138f50efc5fba8d5b8660)
-rwxr-xr-x | src/ceph-disk-prepare | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-disk-prepare b/src/ceph-disk-prepare index 66f889aff42..d8e59eac4cc 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, ) |