Function report |
Source Code:block\partitions\ldm.c |
Create Date:2022-07-28 17:27:43 |
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_partition_table - Determine whether bdev might be a dynamic disk*@state: Partition check state including device holding the LDM Database* This function provides a weak test to decide whether the device is a dynamic* disk or not
Proto:static bool ldm_validate_partition_table(struct parsed_partitions *state)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state |
498 | bool result = false |
502 | data = read_part_sector(state, 0, & sect) |
503 | If Not data Then |
504 | ldm_info("Disk read failed.") |
505 | Return false |
508 | If *(data + 0x01FE) != cpu_to_le16(s/partitions/msdos.h) Then Go to out |
512 | When i < 4 cycle If Borrowed from msdos.c (p) == Formerly SFS (Landis). Then |
514 | result = true |
515 | Break |
521 | out : |
522 | put_dev_sector(sect) |
523 | 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 |