]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: Add support for altering GPT size
authorSassan Panahinejad <sassan@sassan.me.uk>
Fri, 13 May 2016 14:01:02 +0000 (15:01 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 18 May 2016 11:48:04 +0000 (13:48 +0200)
commita18e726c6676914d4488cc8ace5d253a35dac4e5
tree6a32c81f8f5b1ac5facd8fd033a6b04504b7626d
parent304cf9499dc5a8b170f8be56f59e9fddc5545b8a
libfdisk: Add support for altering GPT size

This is useful in two situations:

1. More than 128 partitions are required. Or

2. The partition table must be restricted in size, such as when a system
expects to find a bootloader at a location that would otherwise overlap the
partition table.

The gdisk partitioner supports this feature.

libfdisk is already capable of reading and writing partition tables of any
size, but previously could only create ones of 128 entries and could not
resize.

This change should be fairly safe, as it has no effect unless explicitly
activated.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/gpt.c
libfdisk/src/libfdisk.h.in
libfdisk/src/libfdisk.sym