ubifs_log_start_commit(9)
π ubifs_log_start_commit(9) π
okay so bestie, we're in the Kernel API Manual today and this one is a whole vibe β it's ubifs_log_start_commit, and yes it does exactly what the name says (start a commit), no cap. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
ubifs_log_start_commit β start commit. that's it, that's the whole name, and honestly? iconic for being so direct π
πΈ SYNOPSIS πΈ
int ubifs_log_start_commit (struct ubifs_info *c , int *ltail_lnum );
look at her. two arguments, one int return, main character energy fr fr π
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object. like, the whole filesystem's little profile page πltail_lnumβ this one's a return value, bestie β it hands back the new log tail LEB number. it's giving "output parameter" and we respect it π
π DESCRIPTION π
okay so here's the tea β β the commit operation starts with writing the "commit start" node to the log, plus reference nodes for all journal heads. those reference nodes are the ones that will define the new journal after the commit has finished. lowkey important, highkey essential.
now the cute part: the commit start node and the reference nodes are written in one go to the nearest empty log LEB. yes, one go, together, synchronised, coordinated, slay π . and why do we care? because of this β when the commit is finished, UBIFS may safely unmap all the previous log LEBs. so it's basically a little cleanup ritual wrapped in a write. obsessed β¨
this function returns zero in case of success π and a negative error code in case of failure π. that's it. no in-between, no weird third state, periodt.
π SEE ALSO π
the kernel file lives at ./fs/ubifs/log.c, and it's surrounded by absolute legends, so let's give them all their moment:
ubifs_search_bud(9)ubifs_get_wbuf(9)empty_log_bytes(9)ubifs_add_bud(9)ubifs_add_bud_to_log(9)remove_buds(9)ubifs_log_end_commit(9)ubifs_log_post_commit(9)struct done_ref(9)done_already(9)destroy_done_tree(9)add_node(9)ubifs_consolidate_log(9)dbg_check_bud_bytes(9)
the whole friend group fr π«Ά go read them, iykyk π
and that's the page bestie!! π§ this one came from ./fs/ubifs, dated October 2026, and it's the ubifs_log_start_commit(9) page β go forth and commit responsibly, mwah ππ
π¦ 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