util-linux/libfdisk/src
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
..
.gitignore build-sys: create a regular shared libfdisk.so 2014-11-26 12:45:24 +01:00
Makemodule.am ci: deal with uninstrumented binaries using instrumented libs 2021-02-01 12:00:30 +01:00
alignment.c libfdisk: ignore 33553920 byte optimal I/O size 2020-12-27 10:07:27 -08:00
ask.c docs: reword others "allow to" 2020-07-14 14:31:29 +02:00
bsd.c libfdisk: make labels allocations readable for analysers [coverity scan] 2021-03-25 10:43:20 +01:00
context.c libfdisk: use open(O_EXCL) to detect if device is used 2021-04-15 15:14:52 +02:00
dos.c libfdisk: make labels allocations readable for analysers [coverity scan] 2021-03-25 10:43:20 +01:00
fdiskP.h libfdisk: use open(O_EXCL) to detect if device is used 2021-04-15 15:14:52 +02:00
field.c misc: Fix various typos 2016-05-31 23:40:21 +02:00
gpt.c libfdisk: Include table-length in first-lba checks 2021-04-17 16:15:19 -04:00
init.c libfdisk: (gpt) add GPT debug mask 2020-02-05 14:17:23 +01:00
item.c misc: fix typos using codespell 2018-02-16 11:12:52 +01:00
iter.c cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
label.c libfdisk: (gpt) returns location of the backup header too 2021-03-19 14:54:34 +01:00
libfdisk.h.in libfdisk: support partition type name parsing 2021-02-23 09:19:51 +01:00
libfdisk.sym libfdisk: add partition type aliases and shortcuts 2020-03-03 15:59:49 +01:00
partition.c docs: reword others "allow to" 2020-07-14 14:31:29 +02:00
parttype.c libfdisk: support partition type name parsing 2021-02-23 09:19:51 +01:00
script.c libfdisk: support partition type name parsing 2021-02-23 09:19:51 +01:00
sgi.c libfdisk: make labels allocations readable for analysers [coverity scan] 2021-03-25 10:43:20 +01:00
sun.c libfdisk: make labels allocations readable for analysers [coverity scan] 2021-03-25 10:43:20 +01:00
table.c libfdisk: (dos) fix last possible sector calculation 2021-02-11 12:18:34 +01:00
test.c libfdisk: add stuff for unit tests 2013-03-11 13:00:54 +01:00
utils.c libfdisk: make fdisk_partname() more robust 2020-08-13 10:12:01 +02:00
version.c tests: fix compiler warnings [-Wmissing-prototypes] 2016-02-23 03:18:09 +01:00
wipe.c build-sys: fix non-blkid compilation 2017-09-19 13:48:52 +02:00