mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 10:14:55 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
5de0000ece
commit
39910d062d
@@ -108,7 +108,7 @@ typedef struct {
|
||||
int current_kernel;
|
||||
|
||||
/* Internal variables */
|
||||
uint32_t valid_headers, valid_entries;
|
||||
uint8_t valid_headers, valid_entries, ignored;
|
||||
int current_priority;
|
||||
} GptData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user