is_valid_re...ournal_block(9)
π is_valid_recovery_journal_block(9) π
okay so bestie, welcome to the Kernel API Manual β this one lives in the kernel galaxy and it's all about one very specific vibe check: is this header actually valid for this journal? let's get into it π«Ά
β¨ NAME β¨
is_valid_recovery_journal_block β literally just determines whether the given header describes a valid block for the given journal. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
bool is_valid_recovery_journal_block (const struct recovery_journal
*journal , const struct recovery_block_header *header , bool old_ok );
π ARGUMENTS π
journalβ the journal we're using, bestie. the one we're checking against. πheaderβ the unpacked block header we're checking. yes, unpacked β it's already been unpacked, don't come at me. π¦old_okβ whether an old format header is valid. like, do we accept the vintage look or not. π
π DESCRIPTION π
so here's the tea β β a block is not valid if it's unformatted, or if it's older than the last successful recovery or reformat. that's the whole rule. two ways to fail, no cap. π
β RETURN β
True if the header is valid. π that's it, that's the return value, go off king.
π¦ SEE ALSO π¦
all my faves from the Kernel file ./drivers/md/dm-vdo/repair.c:
as_repair_completion(9)abort_repair(9)abort_on_error(9)drain_slab_depot(9)flush_block_map_updates(9)handle_page_load_error(9)unmap_entry(9)remove_out_of_bounds_entries(9)process_slot(9)rebuild_reference_counts_from_page(9)page_loaded(9)fetch_page(9)rebuild_from_leaves(9)process_entry(9)advance_points(9)before_recovery_point(9)get_entry(9)validate_recovery_journal_entry(9)add_slab_journal_entries(9)vdo_replay_into_slab_journals(9)find_entry_starting_next_page(9)get_recovery_journal_block_header(9)is_exact_recovery_journal_block(9)find_recovery_journal_head_and_tail(9)unpack_entry(9)append_sector_entries(9)extract_new_mappings(9)compute_usages(9)vdo_repair(9)
ok that's the whole page bestie, go validate some headers responsibly π§ββοΈπ
sign-off szn: this little icon comes to you from ./drivers/md/dm-vdo and it's dated October 2026 β and the header up top is is_valid_re...ournal_block(9) in case u were wondering what we've been screaming about this whole time ππ«Ά slay, bye! π
β¨
π¦ 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