| Function report | 
| Source Code: block\partitions\ibm.c | Create Date:2022-07-28 17:31:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:This is the main function, called by check.c
Proto:int ibm_partition(struct parsed_partitions *state)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct parsed_partitions * | state | 
| 297 | char type[5] = {0, } | 
| 298 | char name[7] = {0, } | 
| 302 | res = 0 | 
| 303 | blocksize = bdev_logical_block_size(bdev) | 
| 309 | info = Allocation memory | 
| 312 | geo = Allocation memory | 
| 315 | label = Allocation memory | 
| 318 | If ioctl_by_bdev(bdev, get device geometry , (unsignedlong)geo) != 0 Then Go to out_freeall | 
| 320 | If ioctl_by_bdev(bdev, Get information on a dasd device (enhanced) , (unsignedlong)info) != 0 Then | 
| 338 | Else if info Then | 
| 346 | res = 1 | 
| 347 | If rmat info like formatted/cdl/ldl/... == DASD_FORMAT_LDL Then | 
| 350 | offset = (where to find the VOLSER + 1) * (blocksize >> 9) | 
| 351 | put_partition(state, 1, offset, size - offset) | 
| 354 | Else res = 0 | 
| 357 | out_freeall : | 
| 359 | out_nolab : | 
| 361 | out_nogeo : | 
| 363 | out_exit : | 
| 364 | Return res | 
| 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 |