FIND_VALID_GPT

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

find_valid_gpt - Search disk for valid GPT headers and PTEs  

SYNOPSIS

"SYNOPSIS"

int find_valid_gpt (struct block_device * bdev, gpt_header ** gpt, gpt_entry ** ptes);  

ARGUMENTS

bdev
-- undescribed --
gpt
-- undescribed --
ptes
-- undescribed --
 

DESCRIPTION

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.  

DESCRIPTION

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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:10 GMT, October 09, 2005