ubifs_recover_leb(9)
π ubifs_recover_leb(9) π
okay so welcome to the Kernel API Manual corner, bestie β¨ todayβs main character is ubifs_recover_leb, and she is here to scan and recover a LEB with zero wasted motion π
β¨ NAME β¨
ubifs_recover_leb β scan and recover a LEB π
πΈ SYNOPSIS πΈ
struct ubifs_scan_leb * ubifs_recover_leb (struct ubifs_info *c , int
lnum , int offs , void *sbuf , int jhead );
π ARGUMENTS π
cβ the UBIFS file-system description object πlnumβ the LEB number π’offsβ the offset π―sbufβ a LEB-sized buffer to use π§Ίjheadβ the journal head number this LEB belongs to, or-1if the LEB does not belong to any journal head π«Ά
π DESCRIPTION π
Bestie, this function does a scan of a LEB, but itβs not a plain little scan β it caters for errors that might have been caused by the unclean unmount from which we are attempting to recover π itβs giving cleanup crew for a messy unmount, fr fr.
On success it returns the scanned information β¨ on failure it returns a negative error code π no cap, thatβs the return situation.
π¦ SEE ALSO π¦
Everything below is chilling in the kernel file ./fs/ubifs/recovery.c β hereβs the whole friend group π
is_empty(9)first_non_ff(9)get_master_node(9)write_rcvrd_mst_node(9)ubifs_recover_master_node(9)ubifs_write_rcvrd_mst_node(9)is_last_write(9)clean_buf(9)no_more_nodes(9)fix_unclean_leb(9)drop_last_group(9)drop_last_node(9)get_cs_sqnum(9)ubifs_recover_log_leb(9)recover_head(9)ubifs_recover_inl_heads(9)clean_an_unclean_leb(9)ubifs_clean_lebs(9)grab_empty_leb(9)ubifs_rcvry_gc_commit(9)struct size_entry(9)add_ino(9)find_ino(9)remove_ino(9)ubifs_destroy_size_tree(9)ubifs_recover_size_accum(9)fix_size_in_place(9)inode_fix_size(9)ubifs_recover_size(9)
okay thatβs the whole page, bestie π«Ά signed, sealed, and glitter-bombed by ./fs/ubifs, October 2026, for the one and only ubifs_recover_leb(9) π
π¦ 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