LDM_PARTITION

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

 

NAME

ldm_partition - Find out whether a device is a dynamic disk and handle it  

SYNOPSIS

"SYNOPSIS"

int ldm_partition (struct parsed_partitions * pp, struct block_device * bdev);  

ARGUMENTS

pp
List of the partitions parsed so far
bdev
Device holding the LDM Database
 

DESCRIPTION

This determines whether the device bdev is a dynamic disk and if so creates the partitions necessary in the gendisk structure pointed to by hd.

We create a dummy device 1, which contains the LDM database, and then create each partition described by the LDM database in sequence as devices 2+. For example, if the device is hda, we would have: hda1: LDM database, hda2, hda3,  

AND SO ON

the actual data containing partitions.  

RETURN

1 Success, bdev is a dynamic disk and we handled it 0 Success, bdev is not a dynamic disk -1 An error occurred before enough information had been read Or bdev is a dynamic disk, but it may be corrupted


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
AND SO ON
RETURN

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