Function report |
Source Code:block\partitions\sgi.c |
Create Date:2022-07-28 17:29:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sgi_partition
Proto:int sgi_partition(struct parsed_partitions *state)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct parsed_partitions * | state |
| 35 | slot = 1 |
| 43 | label = read_part_sector(state, 0, & sect) |
| 44 | If Not label Then Return -1 |
| 46 | p = partitions[0] |
| 47 | magic = Big fat spliff... |
| 48 | If be32_to_cpu(magic) != SGI_LABEL_MAGIC Then |
| 51 | put_dev_sector(sect) |
| 52 | Return 0 |
| 57 | csum += be32_to_cpu(cs) |
| 59 | If csum Then |
| 62 | put_dev_sector(sect) |
| 63 | Return 0 |
| 71 | blocks = be32_to_cpu( Size in logical blocks ) |
| 72 | start = be32_to_cpu( First logical block ) |
| 73 | If blocks Then |
| 74 | put_partition(state, slot, start, blocks) |
| 75 | If be32_to_cpu( Type of this partition ) == LINUX_RAID_PARTITION Then flags = ADDPART_FLAG_RAID |
| 78 | slot++ |
| 81 | put_dev_sector(sect) |
| 82 | Return 1 |
| 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 |