Function report |
Source Code:block\partitions\ldm.c |
Create Date:2022-07-28 17:28:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ldm_parse_vblk - Read a raw VBLK object into a vblk structure*@buf: Block of data being worked on*@len: Size of the block of data*@vb: In-memory vblk in which to return information* Read a raw VBLK object into a vblk structure
Proto:static bool ldm_parse_vblk(const u8 *buf, int len, struct vblk *vb)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const u8 * | buf | |
| int | len | |
| struct vblk * | vb |
| 1115 | bool result = false |
| 1121 | If r_objid < 0 Then |
| 1122 | ldm_error("VBLK header is corrupt.") |
| 1123 | Return false |
| 1132 | Case type == Component, version 3 |
| 1132 | Break |
| 1133 | Case type == Disk, version 3 |
| 1133 | Break |
| 1134 | Case type == Disk, version 4 |
| 1134 | Break |
| 1135 | Case type == Disk Group, version 3 |
| 1135 | Break |
| 1136 | Case type == Disk Group, version 4 |
| 1136 | Break |
| 1137 | Case type == Partition, version 3 |
| 1137 | Break |
| 1138 | Case type == Volume, version 5 |
| 1138 | Break |
| 1141 | If result Then ldm_debug/info/error/crit - Output an error message*@f: A printf format string containing the message*@...: Variables to substitute into @f* ldm_debug() writes a DEBUG level message to the syslog but only if the* driver was compiled with debug enabled("Parsed VBLK 0x%llx (type: 0x%02x) ok.", (unsignedlonglong)obj_id, type) |
| 1148 | Return result |
| Name | Describe |
|---|---|
| ldm_ldmdb_add | ldm_ldmdb_add - Adds a raw VBLK entry to the ldmdb database*@data: Raw VBLK to add to the database*@len: Size of the raw VBLK*@ldb: Cache of the database structures* The VBLKs are sorted into categories. Partitions are also sorted by offset.* N |
| 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 |