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 finding either the Primary GPT header and PTEs valid, or the Alternate GPT header and PTEs valid, and the PMBR valid.
Returns 1 if valid, 0 on error. If valid, returns pointers to newly allocated GPT header and PTEs. Validity depends on finding either the Primary GPT header and PTEs valid, or the Alternate GPT header and PTEs valid, and the PMBR valid.