This serie adds a sub-command repair to command gpt to repair a gpt. It only writes the gpt that is corrupted, and not both gpt. So a powercut in the middle of the sub-command repair should not corrupt the last valid gpt.
Philippe Reynes (3): disk: part_efi: add support to repair gpt table cmd: gpt: add subcommand repair test: py: tests: test_gpt.py: add a simple test for the command gpt repair cmd/gpt.c | 16 +++++++- disk/part_efi.c | 86 +++++++++++++++++++++++++++++++++++++++ include/part.h | 10 +++++ test/py/tests/test_gpt.py | 10 +++++ 4 files changed, 121 insertions(+), 1 deletion(-) -- 2.25.1