cgptlib: Add support for IGNOREME GPT signature
authorJulius Werner <jwerner@chromium.org>
Tue, 19 Apr 2016 23:55:36 +0000 (16:55 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Mon, 25 Apr 2016 22:15:32 +0000 (15:15 -0700)
commit39910d062dffcd16683e0626dac1e7064991c7e5
tree0985bb84a411aaa6d46eb3d2a4f3dbbac76e8865
parent5de0000ece70bf419130db9bdbaf444ffc98bf30
cgptlib: Add support for IGNOREME GPT signature

This patch makes cgpt aware of a special "IGNOREME" GPT header signature
string that may appear in either the primary or the secondary GPT and
cause cgpt (and other cgptlib clients) to completely ignore that GPT. It
will continue to function correctly for all other purposes (using the
data from the non-ignored GPT), but never write any data back to the
ignored GPT.

BRANCH=None
BUG=chrome-os-partner:52595
TEST=unit tests

Change-Id: I7e53542385ae9d8d24dc25b75e91f4ff4917f66f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/340072
Reviewed-by: Nam Nguyen <namnguyen@google.com>
cgpt/cgpt_common.c
cgpt/cgpt_show.c
firmware/include/gpt.h
firmware/include/gpt_misc.h
firmware/lib/cgptlib/cgptlib_internal.c
firmware/lib/gpt_misc.c
tests/cgptlib_test.c