函数逻辑报告 |
Source Code:block\partitions\msdos.c |
Create Date:2022-07-27 19:04:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static void parse_extended(struct parsed_partitions *state, sector_t first_sector, sector_t first_size, unsigned int disksig)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 当1循环 |
138 | 如果loopct先自加大于100则返回 |
142 | data等于read_part_sector(state, this_sector, & sect) |
143 | 如果非data则返回 |
146 | 如果非msdos_magic_present(data + 510)则转到:done |
166 | 如果非nr_sects(p)或is_extended_partition(p)则继续下一循环 |
171 | offs等于start_sect(p)乘sector_size |
172 | size等于nr_sects(p)乘sector_size |
173 | next等于this_sector加offs |
174 | 如果i大于等于2则 |
177 | 如果next小于first_sector则继续下一循环 |
179 | 如果next加size大于first_sector加first_size则继续下一循环 |
183 | put_partition(state, next, next, size) |
185 | 如果SYS_IND(p)恒等于LINUX_RAID_PARTITION则flags等于ADDPART_FLAG_RAID |
187 | loopct等于0 |
198 | p减等于4 |
201 | 退出 |
206 | this_size等于nr_sects(p)乘sector_size |
207 | put_dev_sector(sect) |
209 | done : |
210 | put_dev_sector(sect) |
名称 | 描述 |
---|---|
msdos_partition |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |