Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ldm_validate_partition_table - Determine whether bdev might be a dynamic disk*@state: Partition check state including device holding the LDM Database* This function provides a weak test to decide whether the device is a dynamic* disk or not

Proto:static bool ldm_validate_partition_table(struct parsed_partitions *state)

Type:bool

Parameter:

TypeParameterName
struct parsed_partitions *state
498  bool result = false
500  BUG_ON(!state)
502  data = read_part_sector(state, 0, & sect)
503  If Not data Then
504  ldm_info("Disk read failed.")
505  Return false
508  If *(data + 0x01FE) != cpu_to_le16(s/partitions/msdos.h) Then Go to out
511  p = data + 0x01BE
512  When i < 4 cycle If Borrowed from msdos.c (p) == Formerly SFS (Landis). Then
514  result = true
515  Break
518  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("Found W2K dynamic disk partition type.")
521  out :
522  put_dev_sector(sect)
523  Return result
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