vdo_get_com...ock_fragment(9)
π vdo_get_com...ock_fragment(9) β like, the Kernel API Manual page, bestie β¨
okay so this is one of those Kernel API Manual pages π and honestly? it's short, it's sweet, and it's gonna make sense in like two minutes fr fr. let's go π¦
β¨ NAME β¨
vdo_get_compressed_block_fragment β get a reference to a compressed fragment from a compressed block π
πΈ SYNOPSIS πΈ
int vdo_get_compressed_block_fragment (enum block_mapping_state
mapping_state , struct compressed_block *block , u16 *fragment_offset ,
u16 *fragment_size );
like yes the spacing is a little quirky, that's just how it is, don't come for me π
π«Ά ARGUMENTS π«Ά
mapping_stateβ the mapping state that's describing the fragment, iykyk πblockβ the compressed block that was read from disk. it came from disk, bestie, respect it πfragment_offsetβ the offset of the fragment within the compressed block πfragment_sizeβ and this one's the size of the fragment, periodt β¨
π RETURN π
if a valid compressed fragment is found, you get VDO_SUCCESS π slay.
otherwise you get VDO_INVALID_FRAGMENT if the fragment is invalid π β so, y'know, vibe check the return value, please π
π₯ SEE ALSO π₯
okay this is the part where it goes full group-chat-tag-everyone energy πΈ β the Kernel file ./drivers/md/dm-vdo/packer.c and honestly a whole cast:
assert_on_packer_thread(9)insert_in_sorted_list(9)make_bin(9)vdo_make_packer(9)vdo_free_packer(9)get_packer_from_data_vio(9)vdo_get_packer_statistics(9)abort_packing(9)release_compressed_write_waiter(9)finish_compressed_write(9)add_to_bin(9)remove_from_bin(9)initialize_compressed_block(9)pack_fragment(9)compressed_write_end_io(9)write_bin(9)add_data_vio_to_packer_bin(9)select_bin(9)vdo_attempt_packing(9)check_for_drain_complete(9)write_all_non_empty_bins(9)vdo_flush_packer(9)vdo_remove_lock_holder_from_packer(9)vdo_increment_packer_flush_generation(9)vdo_drain_packer(9)vdo_resume_packer(9)vdo_dump_packer(9)
like, that's the whole packer friend group, no cap π
ok and finally the cute lil sign-off: this one lives in./drivers/md/dm-vdo, dated October 2026, and it's pagevdo_get_com...ock_fragment(9)of the Kernel API Manual π mwah, go read your man pages bestie ππ¦
π¦ 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