dbg_populate_lsave(9)
π dbg_populate_lsave(9) β the manual, but make it make sense
okay bestie, this is dbg_populate_lsave(9), straight out of the Kernel API Manual, and honestly? it's giving chaos-for-science and I'm kind of obsessed π
β¨ SYNOPSIS β¨
int dbg_populate_lsave (struct ubifs_info *c );
that's it, that's the whole vibe. one function, one argument, iconic behavior πΈ
π«Ά ARGUMENTS π«Ά
cβ the UBIFS file-system description object π like, this is your little handle on the whole filesystem situation, and yes you do need it
π₯ DESCRIPTION π₯
okay so here's the tea β this is the debugging version of populate_lsave(). Instead of populating lsave with useful LEBs, it fills it with random LEBs β and no, that's not a bug, that's the whole point, it's literally good for test coverage ππ
so what does it return? well π
- returns zero if lsave has not been populated β which lowkey means this debugging feature is disabled
- returns non-zero if lsave has been populated β¨
yeah it's that simple. no cap. π¦
π SEE ALSO π
first up, the kernel file this whole situation lives in: ./fs/ubifs/lpt_commit.c β go read it, iykyk π
and now, the guest list (it's long, but we respect every single one of them, periodt):
first_dirty_cnode(9), next_dirty_cnode(9), get_cnodes_to_commit(9), upd_ltab(9), alloc_lpt_leb(9), layout_cnodes(9), realloc_lpt_leb(9), write_cnodes(9), next_pnode_to_dirty(9), add_pnode_dirt(9), do_make_pnode_dirty(9), make_tree_dirty(9), need_write_all(9), lpt_tgc_start(9), lpt_tgc_end(9), populate_lsave(9), nnode_lookup(9), make_nnode_dirty(9), make_pnode_dirty(9), make_ltab_dirty(9), make_lsave_dirty(9), make_node_dirty(9), get_lpt_node_len(9), get_pad_len(9), get_lpt_node_type(9), is_a_node(9), lpt_gc_lnum(9), lpt_gc(9), ubifs_lpt_start_commit(9), free_obsolete_cnodes(9), ubifs_lpt_end_commit(9), ubifs_lpt_post_commit(9), first_nnode(9), next_nnode(9), ubifs_lpt_free(9), dbg_is_all_ff(9), dbg_is_nnode_dirty(9), dbg_is_pnode_dirty(9), dbg_is_ltab_dirty(9), dbg_is_lsave_dirty(9), dbg_is_node_dirty(9), dbg_check_ltab_lnum(9), dbg_check_ltab(9), dbg_chk_lpt_free_spc(9), dbg_chk_lpt_sz(9), dump_lpt_leb(9), ubifs_dump_lpt_lebs(9)
like, that's the whole friend group and every single one of them showed up to the function π§π
β οΈ friendly reminder bestie: this is a debugging version, so the random-LEB thing is intentional β don't come for it, it's doing its job π«Ά
β¨ and that's the page! β¨ this lil manual came from ./fs/ubifs, dated October 2026, and we are officially done here. mwah, go populate something (safely) πππ¦
π¦ 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