Hi Rich,
This is v2 series to add support for resizing MBR logical partitions.
I found the reason of problem in v1 that parted reports error when
adding logical partitions, is that logical partitions are not aligned
to 2 sectors. This problem doesn't appear in v2.
This is for early review, because of:
1. I'm not sure the splitting of patches is appropriate or not, but
it's much easier to review than v1.
2. The test script is not included, I'm not sure where to add the test
script. But I'll send the test script I used.
Thanks!
changes to v1:
1. spit the patches so it's easier to review
2. fix the parted error caused by unaligned logical partitions
3. extend the content of logical partitions
4. refactor to make logical partitions a seperate list
Hu Tao (13):
resize: convert sectsize to int64
add function div_roundup64
resize: introduce partition type
resize: introduce filter_part
resize: add function find_partition
resize: add function print_summmary
resize: expose loop to calculate new partitions' positions
resize: add function mbr_part_type
resize: add function copy_partition
resize: add function set_partition_bootable_and_id
resize: add function expand_partition_content
resize: add partition type LogicalPartition
resize: add support to resize logical partitions
mllib/common_utils.ml | 1 +
mllib/common_utils.mli | 1 +
resize/resize.ml | 217 ++++++++++++++++++++++++++++++++++++-------------
3 files changed, 161 insertions(+), 58 deletions(-)
--
1.9.3