paritionedfs: partially fix extended paritions support
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 15 Feb 2013 11:37:59 +0000 (13:37 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 19 Feb 2013 06:46:52 +0000 (08:46 +0200)
commit25b437fd02d17bbe884c4c29bde41b49bc070136
tree6642ffadf3a3112de2fcb8fc6ac7422792e06082
parent0d9a0cd3b3b851a1d2d180d7d504e2ebe8431de6
paritionedfs: partially fix extended paritions support

Currently MIC is unable to create more than 3 partitions, because the
logical/extended paritions support is broken. This is because the EBR is not
taken into account, so parted fails to create logical partitions. EBR stands
for "Extended Boot Record" and this ia basically a single sector which prepends
every logical parition.

This patch fixes the issue. We take one sector from each partition starting
from the 3rd one (the last primary parition), and this sector will be used by
parted for the EBR. This works nicely and partitions stay aligned correctly for
the best performance.

Change-Id: I678c52f24750388ffdc09c32939541ba3f3e8b8f
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/utils/partitionedfs.py