vdo_compute...block_number(9)
π vdo_compute_recovery_journal_block_number(9) π
okay so we're in the Kernel API Manual bestie, welcome to the dm-vdo department of the kernel, it's giving very niche very iconic π
β¨ NAME β¨
vdo_compute_recovery_journal_block_number β literally computes the physical block number of the recovery journal block that would have a given sequence number π«Ά
πΈ SYNOPSIS πΈ
physical_block_number_t vdo_compute_recovery_journal_block_number
(block_count_t journal_size , sequence_number_t sequence_number );
like, that's the whole signature, no cap π₯
π¦ ARGUMENTS π¦
journal_sizeβ the size of the journal, periodt. that's the vibe, that's the value π«sequence_numberβ the sequence number. yeah bestie that's it, that's the argument π
π RETURN π
it hands you back the pbn of the journal block which would the specified sequence number π (yes that's exactly what the original says and we're not editing the lore ngl)
π§ SEE ALSO π§
Kernel file ./drivers/md/dm-vdo/encodings.h, and like, the entire extended universe of related functions, all of them, in this exact order, slay β
Block map entries(9)vdo_are_same_version(9)vdo_pack_version_number(9)vdo_unpack_version_number(9)vdo_pack_header(9)vdo_unpack_header(9)vdo_get_index_region_start(9)vdo_get_data_region_start(9)vdo_get_index_region_size(9)vdo_pack_recovery_journal_entry(9)vdo_unpack_recovery_journal_entry(9)vdo_is_valid_recovery_journal_sector(9)vdo_get_journal_block_sector(9)vdo_pack_recovery_block_header(9)vdo_unpack_recovery_block_header(9)vdo_compute_slab_count(9)vdo_get_saved_reference_count_size(9)vdo_get_slab_journal_start_block(9)vdo_advance_journal_point(9)vdo_before_journal_point(9)vdo_pack_journal_point(9)vdo_unpack_journal_point(9)vdo_pack_slab_journal_block_header(9)vdo_unpack_slab_journal_block_header(9)vdo_pack_slab_journal_entry(9)vdo_unpack_slab_journal_entry(9)vdo_get_slab_summary_hint_shift(9)
ngl this one is a little short but she's still main character energy, don't underestimate her π
okay that's the whole page, love u, go read encodings.h π
β sourced straight from ./drivers/md/dm-vdo, dated October 2026, 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