]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: part_efi: add support to repair gpt table
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 22 Apr 2022 15:46:48 +0000 (17:46 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 6 May 2022 18:39:15 +0000 (14:39 -0400)
commit5c783b54d605aa21c8e3e0e188ab99d58135addd
tree5a3592ae81cf612b6a0ee984f4b07d09678b231d
parent145921bdbdcfc24f18ce21d570ff86cc7e1fa3ba
disk: part_efi: add support to repair gpt table

If a gpt table is corrupted (after a power cut
for example), then the gpt table should repaired.
The function gpt_repair_headers check if at least
one gpt table is valid, and then only write the
corrupted gpt table.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
disk/part_efi.c
include/part.h