[parted-devel] [PATCH 0/2] Fix extended partition handling
Brian C. Lane
bcl at redhat.com
Fri Jun 5 22:25:19 UTC 2015
There's 2 issues here: First is that the resize is telling the kernel the
length in sectors instead of bytes. That's what these patches test and fix.
The other is that parted will always send a resize to the kernel for an
extended partition. This is because the kernel thinks the size is 2 and parted
uses the size reserved for the extended partition.
I don't think there's any actual problem doing this, but it does seem a
bit messy so suggestions are welcome.
Brian C. Lane (2):
tests: Make sure the extended partition length is 2 (#1135493)
libparted: BLKPG_RESIZE_PARTITION uses bytes, not sectors (#1135493)
libparted/arch/linux.c | 5 ++++-
tests/Makefile.am | 1 +
tests/t2320-dos-extended-noclobber.sh | 41 +++++++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+), 1 deletion(-)
create mode 100644 tests/t2320-dos-extended-noclobber.sh
--
2.4.0
More information about the parted-devel
mailing list