Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partitions\ldm.c Create Date:2022-07-28 17:27:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ldm_create_data_partitions - Create data partitions for this device*@pp: List of the partitions parsed so far*@ldb: Cache of the database structures* The database contains ALL the partitions for ALL disk groups, so we need to

Proto:static bool ldm_create_data_partitions(struct parsed_partitions *pp, const struct ldmdb *ldb)

Type:bool

Parameter:

TypeParameterName
struct parsed_partitions *pp
const struct ldmdb *ldb
577  part_num = 1
579  BUG_ON(!pp || !ldb)
581  disk = ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id*@ldb: Cache of the database structures* The LDM Database contains a list of all partitions on all dynamic disks.* The primary PRIVHEAD, at the beginning of the physical disk, tells us
582  If Not disk Then
583  ldm_crit("Can't find the ID of this disk in the database.")
584  Return false
587  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
591  vb = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(item, structvblk, list)
592  part = part
594  If disk_id != obj_id Then Continue
597  put_partition(pp, part_num, logical_disk_start + VBLK Partition , start, size and vol_off in sectors )
599  part_num++
602  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
603  Return true
Caller
NameDescribe
ldm_partitionldm_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