Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ldm_compare_privheads - Compare two privhead objects*@ph1: First privhead*@ph2: Second privhead* This compares the two privhead structures @ph1 and @ph2.* Return: 'true' Identical* 'false' Different

Proto:static bool ldm_compare_privheads(const struct privhead *ph1, const struct privhead *ph2)

Type:bool

Parameter:

TypeParameterName
const struct privhead *ph1
const struct privhead *ph2
215  BUG_ON(!ph1 || !ph2)
217  Return Offsets and sizes are in sectors. == Offsets and sizes are in sectors. && ver_minor == ver_minor && logical_disk_start == logical_disk_start && logical_disk_size == logical_disk_size && config_start == config_start && config_size == config_size && uuid_equal( & disk_id, & disk_id)
Caller
NameDescribe
ldm_validate_privheadsldm_validate_privheads - Compare the primary privhead with its backups*@state: Partition check state including device holding the LDM Database*@ph1: Memory struct to fill with ph contents* Read and compare all three privheads from disk