ldm_validate_privheads(9)
π ldm_validate_privheads(9) π
okay bestie, welcome to the Kernel API Manual page for ldm_validate_privheads β it's giving disk-partition detective energy, and we're gonna read it together. π«Ά
πΈ NAME πΈ
ldm_validate_privheads β compare the primary privhead with its backups β¨
π¦ SYNOPSIS π¦
bool ldm_validate_privheads (struct parsed_partitions *state , struct
privhead *ph1 );
π ARGUMENTS π
stateβ partition check state including the device holding the LDM Database πΎph1β memory struct to fill withphcontents, cute and simple π§
π DESCRIPTION π
So the page says: read and compare all three privheads from disk. All three. Not two. Not one. Three. periodt. π₯
The privheads on disk show the size and location of the main disk area and the configuration area β aka the database. The values are range-checked against hd, which contains the real size of the disk. no cap, that's the whole description, and it ate. π
π€ RETURN π€
This section is empty in the original page, bestie β like, there is literally no return text documented here. π
π SEE ALSO π
Kernel file: ./block/partitions/ldm.c
The SEE ALSO squad is huge and iconic, so buckle up:
ldm_parse_privhead(9)ldm_parse_tocblock(9)ldm_parse_vmdb(9)ldm_compare_privheads(9)ldm_compare_tocblocks(9)ldm_validate_tocblocks(9)ldm_validate_vmdb(9)ldm_validate_partition_table(9)ldm_get_disk_objid(9)ldm_create_data_partitions(9)ldm_relative(9)ldm_get_vnum(9)ldm_get_vstr(9)ldm_parse_cmp3(9)ldm_parse_dgr3(9)ldm_parse_dgr4(9)ldm_parse_dsk3(9)ldm_parse_dsk4(9)ldm_parse_prt3(9)ldm_parse_vol5(9)ldm_parse_vblk(9)ldm_ldmdb_add(9)ldm_frag_add(9)ldm_frag_free(9)ldm_frag_commit(9)ldm_get_vblks(9)ldm_free_vblks(9)ldm_partition(9)
π that's the vibe: source/version spot is ./block/partitions, dated October 2026, and the page is ldm_validate_privheads(9) β mwah! π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms