.\" 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 "LDM_PARTITION" "" "06 October 2005" "" "" .SH NAME ldm_partition \- Find out whether a device is a dynamic disk and handle it .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ldm_partition (struct parsed_partitions * \fIpp\fB, struct block_device * \fIbdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIpp\fB\fR List of the partitions parsed so far .TP \fB\fIbdev\fB\fR Device holding the LDM Database .SH "DESCRIPTION" .PP This determines whether the device \fIbdev\fR is a dynamic disk and if so creates the partitions necessary in the gendisk structure pointed to by \fIhd\fR\&. .PP 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, .SH "AND SO ON" .PP the actual data containing partitions. .SH "RETURN" .PP 1 Success, \fIbdev\fR is a dynamic disk and we handled it 0 Success, \fIbdev\fR is not a dynamic disk -1 An error occurred before enough information had been read Or \fIbdev\fR is a dynamic disk, but it may be corrupted