Function report |
Source Code:block\partitions\ultrix.c |
Create Date:2022-07-28 17:30:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ultrix_partition
Proto:int ultrix_partition(struct parsed_partitions *state)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct parsed_partitions * | state |
| 18 | struct ultrix_disklabel{s32 pt_magic;s32 pt_valid;struct pt_info{s32 pi_nblocks;unsigned int pi_blkoff;}pt_part[8];} * label |
| 30 | data = read_part_sector(state, (16384 - size of label ) / 512, & sect) |
| 31 | If Not data Then Return -1 |
| 36 | If pt_magic == Partition magic number && pt_valid == Indicates if struct is valid Then |
| 37 | When i < 8 cycle If pi_nblocks Then |
| 39 | put_partition(state, i + 1, pi_blkoff, pi_nblocks) |
| 42 | put_dev_sector(sect) |
| 44 | Return 1 |
| 45 | Else |
| 46 | put_dev_sector(sect) |
| 47 | Return 0 |
| 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 |