Function report | 
Source Code:block\partitions\msdos.c | 
Create Date:2022-07-28 17:29:17 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Create devices for each logical partition in an extended partition.* The logical partitions form a linked list, with each entry being* a partition table with two entries. The first entry* is the real data partition (with a start relative to the partition
Proto:static void parse_extended(struct parsed_partitions *state, sector_t first_sector, sector_t first_size, unsigned int disksig)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct parsed_partitions * | state | |
| sector_t | first_sector | |
| sector_t | first_size | |
| unsigned int | disksig | 
| 129 | sector_size = bdev_logical_block_size(bdev) / 512 | 
| 131 | loopct = 0 | 
| 134 | this_sector = first_sector | 
| 135 | this_size = first_size | 
| 137 | When 1 cycle | 
| 138 | If ++loopct > 100 Then Return | 
| 142 | data = read_part_sector(state, this_sector, & sect) | 
| 143 | If Not data Then Return | 
| 146 | If Not msdos_magic_present(data + 510) Then Go to done | 
| 166 | If Not nr_sects(p) || is_extended_partition(p) Then Continue | 
| 171 | offs = start_sect(p) * sector_size | 
| 172 | size = nr_sects(p) * sector_size | 
| 173 | next = this_sector + offs | 
| 174 | If i >= 2 Then | 
| 177 | If next < first_sector Then Continue | 
| 179 | If next + size > first_sector + first_size Then Continue | 
| 183 | put_partition(state, next, next, size) | 
| 185 | If SYS_IND(p) == LINUX_RAID_PARTITION Then flags = ADDPART_FLAG_RAID | 
| 187 | loopct = 0 | 
| 198 | p -= 4 | 
| 201 | Break | 
| 205 | this_sector = first_sector + start_sect(p) * sector_size | 
| 206 | this_size = nr_sects(p) * sector_size | 
| 207 | put_dev_sector(sect) | 
| 209 | done : | 
| 210 | put_dev_sector(sect) | 
| Name | Describe | 
|---|---|
| msdos_partition | 
| 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  |