]> git.sur5r.net Git - u-boot/commit
gpt: command: Extend gpt command to support GPT table verification
authorLukasz Majewski <l.majewski@majess.pl>
Fri, 20 Nov 2015 07:06:17 +0000 (08:06 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 23 Nov 2015 16:01:51 +0000 (11:01 -0500)
commitbbb9ffac6066c708bc764e6603e6a54c4c7bb995
treef1ddec75ea6e10e1b670b725c0d15c8ecebc4327
parentcef68bf9042dda6b77b5845a25f37b9ea882074b
gpt: command: Extend gpt command to support GPT table verification

This commit adds support for "gpt verify" command, which verifies
correctness of on-board stored GPT partition table.
As the optional parameter one can provide '$partitons' environment variable
to check if partition data (size, offset, name) is correct.

This command should be regarded as complementary one to "gpt restore".

Signed-off-by: Lukasz Majewski <l.majewski@majess.pl>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Przemyslaw Marczak <p.marczak@samsung.com>
common/cmd_gpt.c