partitionedfs: a preparation and nicification
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 4 Jan 2013 14:25:15 +0000 (16:25 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 11 Jan 2013 09:42:54 +0000 (11:42 +0200)
commitbd760f08dc3d9c924f8a269b3c128d399e15835d
tree1d165aa9b08a319145134cad425fc01cee408982
parent806208458d3ea937d02bbad4171a3d284f211e46
partitionedfs: a preparation and nicification

Prepare for further changes and refactor the code a bit: separate the parted
running functionality to the '__run_parted()' function.

Do some nicifications in '__create_partition()' to improve readability.

Move the '__create_partition()' and '__run_parted()' functions down so that
they go just before 'format_disk()', which is more logical.

Remove a lot of redundant code by moving the error checking to
'__run_parted()'.

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