]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fix journal partition creation 228/head
authorAlexandre Marangone <alexandre.marangone@inktank.com>
Fri, 19 Apr 2013 22:09:28 +0000 (15:09 -0700)
committerAlexandre Marangone <alexandre.marangone@inktank.com>
Fri, 19 Apr 2013 22:11:09 +0000 (15:11 -0700)
commit56619ab91732bd2eacbef388311954f4e0230a30
tree021c144e797fa178ee3350a8c7fb34b72aae9b11
parentd395aa521e8a4b295ed2b08dd7cfb7d9f995fcf7
Fix journal partition creation

With OSD sharing data and journal, the previous code created the
journal partiton from the end of the device. A uint32_t is
used in sgdisk to get the last sector, with large HD, uint32_t
is too small.
The journal partition will be created backwards from the
a sector in the midlle of the disk leaving space before
and after it. The data partition will use whichever of
these spaces is greater. The remaining will not be used.

This patch creates the journal partition from the start as a workaround.

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
src/ceph-disk