Nikos Skalkotos
2017-Jul-29 17:50 UTC
[Libguestfs] [PATCH 0/1] New partition API: part_resize
Hello, I've added a new API method to expose parted's resizepart command. It's been there for some years now and can be used to change the ending boundaries of a partition. This command does always retain the partition number and flags. There are cases where simulating this behavior by removing and re-creating the partition is not easy. One such case is when the partition numbering contains gaps. If we have a partition table with 2 partitions with numbers 1 and 3, removing and re-creating the latter with parted will change its number to 2. Nikos Skalkotos (1): New partition API: part_resize daemon/parted.c | 31 +++++++++++++++++++++++++++++++ generator/actions_core.ml | 22 ++++++++++++++++++++++ generator/proc_nr.ml | 1 + lib/MAX_PROC_NR | 2 +- 4 files changed, 55 insertions(+), 1 deletion(-) -- 2.13.3
Reasonably Related Threads
- Re: [PATCH 1/1] New partition API: part_resize
- [PATCH 1/1] New partition API: part_resize
- check-release FAILED (was: Re: [PATCH 1/1] New partition API: part_resize)
- [PATCH v3 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
- [PATCH v2 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes