.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "FIND_VALID_GPT" "9" "09 October 2005" "" "" .SH NAME find_valid_gpt \- Search disk for valid GPT headers and PTEs .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int find_valid_gpt (struct block_device * \fIbdev\fB, gpt_header ** \fIgpt\fB, gpt_entry ** \fIptes\fB); \fR .SH "ARGUMENTS" .TP \fB\fIbdev\fB\fR -- undescribed -- .TP \fB\fIgpt\fB\fR -- undescribed -- .TP \fB\fIptes\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP 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' kernel command line option) and finding either the Primary 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. .SH "DESCRIPTION" .PP 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' kernel command line option) and finding either the Primary 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.