Function report |
Source Code:block\partitions\ldm.c |
Create Date:2022-07-28 17:27:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ldm_validate_tocblocks - Validate the table of contents and its backups*@state: Partition check state including device holding the LDM Database*@base: Offset, into @state->bdev, of the database*@ldb: Cache of the database structures* Find and compare the
Proto:static bool ldm_validate_tocblocks(struct parsed_partitions *state, unsigned long base, struct ldmdb *ldb)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state | |
unsigned long | base | |
struct ldmdb * | ldb |
356 | static const int off[4] = {Tables of contents. , OFF_TOCB2, OFF_TOCB3, OFF_TOCB4} |
362 | bool result = false |
365 | ph = Cache of the database |
367 | tb[1] = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
368 | If Not tb[1] Then |
382 | If Not data Then |
388 | put_dev_sector(sect) |
390 | If Not nr_tbs Then |
395 | If bitmap1_start + bitmap1_size > config_size || bitmap2_start + bitmap2_size > config_size Then |
409 | result = true |
410 | err : |
412 | Return result |
Name | Describe |
---|---|
ldm_partition | ldm_partition - Find out whether a device is a dynamic disk and handle it*@state: Partition check state including device holding the LDM Database* This determines whether the device @bdev is a dynamic disk and if so creates |
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 |