int find_valid_gpt (struct block_device * bdev, gpt_header ** gpt, gpt_entry ** ptes);
Returns 1 if valid, 0 on error. If valid, returns pointers to newly allocated GPT header and PTEs. Validity depends on PMBR being valid (or being overridden by the GPT header and PTEs valid, or the Alternate GPT header and PTEs valid. If the Primary GPT header is not valid, the Alternate GPT header is not checked unless the 'gpt' kernel command line option is passed. This protects against devices which misreport their size, and forces the user to decide to use the Alternate GPT.
Returns 1 if valid, 0 on error. If valid, returns pointers to newly allocated GPT header and PTEs. Validity depends on PMBR being valid (or being overridden by the GPT header and PTEs valid, or the Alternate GPT header and PTEs valid. If the Primary GPT header is not valid, the Alternate GPT header is not checked unless the 'gpt' kernel command line option is passed. This protects against devices which misreport their size, and forces the user to decide to use the Alternate GPT.