incubator-nuttx/fs/partition
Jukka Laitinen dd2ffbc768 Fixes for GPT partition parsing
1. Don't handle invalid or empty pte entries

num_partition_entries field in GPT typically means number of maximum entries
and not the number of used entries. Empty entries are indentified with
"0" partition type guid. Loop through all the entries

2. Fix the GPT partition size calculation

"ending_lba" is included in the partition, it is not the start of the next one.
Thus the correct size of the partition is end-start+1

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-09-27 09:42:39 +08:00
..
Kconfig fs/partition: support parse gpt partition 2021-10-30 01:24:09 -05:00
Make.defs fs/partition: support parse gpt partition 2021-10-30 01:24:09 -05:00
fs_gpt.c Fixes for GPT partition parsing 2022-09-27 09:42:39 +08:00
fs_mbr.c fs/partition: support parse mbr partition 2021-10-30 01:24:09 -05:00
fs_partition.c fs/partition: support parse gpt partition 2021-10-30 01:24:09 -05:00
fs_ptable.c nuttx:Change fs strncpy to strlcpy to avoid losing'\0' 2021-12-30 18:06:00 +08:00
partition.h fs/partition: support parse gpt partition 2021-10-30 01:24:09 -05:00