| Function report | 
| Source Code: block\partitions\ldm.c | Create Date:2022-07-28 17:27:31 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:ldm_validate_privheads - Compare the primary privhead with its backups*@state: Partition check state including device holding the LDM Database*@ph1: Memory struct to fill with ph contents* Read and compare all three privheads from disk
Proto:static bool ldm_validate_privheads(struct parsed_partitions *state, struct privhead *ph1)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct parsed_partitions * | state | |
| struct privhead * | ph1 | 
| 268 | static const int off[3] = {Offset of the first privheadrelative to the start of thedevice in sectors , Backup private headers. , OFF_PRIV3} | 
| 272 | bool result = false | 
| 278 | ph[1] = Allocation memory | 
| 279 | ph[2] = Allocation memory | 
| 286 | config_start = 0 | 
| 290 | data = read_part_sector(state, config_start + off[i], & sect) | 
| 292 | If Not data Then | 
| 297 | put_dev_sector(sect) | 
| 298 | If Not result Then | 
| 309 | If config_start > num_sects || config_start + config_size > num_sects Then | 
| 315 | If logical_disk_start > config_start || logical_disk_start + logical_disk_size > config_start Then | 
| 332 | result = true | 
| 333 | out : | 
| 336 | Return result | 
| Name | Describe | 
|---|---|
| ldm_partition | ldm_partition - Find out whether a device is a dynamic disk and handle it*@state: Partition check state including device holding the LDM Database* This determines whether the device @bdev is a dynamic disk and if so creates | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |