gpt: add write function and gptrepair command

The first hint of something practical, a command that can restore any of
the GPT structures from the alternate location. New test case must run
under QEMU because the loopback device used by the other unit tests does
not support writing.
This commit is contained in:
Michael Marineau 2014-10-19 14:21:29 -07:00
parent 478458d404
commit 051545ddf0
6 changed files with 277 additions and 4 deletions

View file

@ -1150,6 +1150,12 @@ script = {
common = tests/grub_cmd_tr.in;
};
script = {
testcase;
name = gptrepair_test;
common = tests/gptrepair_test.in;
};
program = {
testcase;
name = example_unit_test;