LDM_VALIDATE_PARTITION_TABLE

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

 

NAME

ldm_validate_partition_table - Determine whether bdev might be a dynamic disk  

SYNOPSIS

"SYNOPSIS"

BOOL ldm_validate_partition_table (struct block_device * bdev);  

ARGUMENTS

bdev
Device holding the LDM Database
 

DESCRIPTION

This function provides a weak test to decide whether the device is a dynamic disk or not. It looks for an MS-DOS-style partition table containing at least one partition of type 0x42 (formerly SFS, now used by Windows for dynamic disks).

N.B. The only possible error can come from the read_dev_sector and that is only likely to happen if the underlying device is strange. If that IS the case we should return zero to let someone else try.  

RETURN

TRUE bdev is a dynamic disk FALSE bdev is not a dynamic disk, or an error occurred


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURN

This document was created by man2html, using the manual pages.
Time: 04:40:53 GMT, October 06, 2005