no_more_nodes(9)
π no_more_nodes(9)
okay so real talk bestie, this one lives in the Kernel API Manual and it's called no_more_nodes β yes the "(9)" is part of the whole name, that's just how the kernel section do π
β¨ NAME β¨
no_more_nodes β literally just here to tell you if there are no more nodes in a buffer. that's the whole gig, no cap π
πΈ SYNOPSIS πΈ
int no_more_nodes (const struct ubifs_info *c , void *buf , int len ,
int lnum , int offs );
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object, aka the main character of this whole situation πbufβ the buffer we're checking. yes. that one. πlenβ how long that buffer is, in case you were wondering πlnumβ the LEB number of the LEB thatbufwas read from πoffsβ the offset thatbufwas read from, so you know exactly where we're at β¨
π DESCRIPTION π
so the vibe here is: this function makes sure that the corrupted node sitting at offs is legit the last thing written to a LEB. like, nothing after it, that's the end, periodt π
and it reports back like this:
- returns 1 if more data is not found (slay, we're done here) π
- returns 0 if more data is found (ok so there's more, keep going bestie) π
that's it. that's the function. lowkey iconic for how straightforward it is ngl π«Ά
β SEE ALSO β
all roads lead to the kernel file ./fs/ubifs/recovery.c and honestly its whole friend group came along too π§:
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)fix_unclean_leb(9)drop_last_group(9)drop_last_node(9)ubifs_recover_leb(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, mwah π this little masterpiece is brought to you by the fine folks over at ./fs/ubifs, dated October 2026, and it will forever be known as no_more_nodes(9). go forth and check your buffers, 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