util-linux/libfdisk
Samuel Dionne-Riel fb64d93288 libfdisk: Include table-length in first-lba checks
Otherwise, sfdisk would error out on its own dump, as first-lba would be
earlier than "plausible" assuming the default table size.

This is because it did not look for `table-length` when using an sfdisk
script. This means that using `--dump` on a valid image, could not be
unserialized back into a valid image.

This is helpful in exotic situations, where a partition has to be
created earlier than the conventional "first-lba" (2048). For example,
on Allwinner A64 boards, where a firmware is stored at LBA16. With this
it is possible to ask for `first-lba` at or earlier than 16, by reducing
the number of entries to e.g. 48.
2021-04-17 16:15:19 -04:00
..
docs libfdisk: (docs) add missing references 2020-07-22 10:33:53 +02:00
samples libdisk: write sample output to stdout 2019-08-30 16:05:50 +02:00
src libfdisk: Include table-length in first-lba checks 2021-04-17 16:15:19 -04:00
COPYING docs: use SPDX license names 2018-08-16 14:47:21 +02:00
Makemodule.am libfdisk: add sample-fdisk-mkpart binary 2017-02-17 16:15:03 +01:00
fdisk.pc.in build-sys: add fdisk.pc 2014-11-26 13:20:16 +01:00
meson.build meson: implement building of static programs 2021-03-17 15:07:27 +01:00