ubifs_add_bud_to_log(9)
π NAME π
okay so bestie, welcome to ubifs_add_bud_to_log(9) β the kernel API manual page for ubifs_add_bud_to_log, and its whole thing is add a new bud to the log β¨. That's the vibe. π«Ά
πΈ SYNOPSIS πΈ
int ubifs_add_bud_to_log (struct ubifs_info *c , int jhead , int lnum ,
int offs );
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the main-character context πjheadβ the journal head that the bud belongs tolnumβ the LEB number of the budoffsβ the starting offset of the bud
π¦ DESCRIPTION π¦
This function writes a reference node for the new bud LEB lnum to the log, and then adds it to the buds trees. It also makes sure the log size does not exceed the c->max_bud_bytes limit. No cap, it's doing the most to keep things in check π₯
Returns zero in case of success, -EAGAIN if commit is required, and a negative error code in case of failure. So yeah: zero = slay, -EAGAIN = commit needed bestie, negative = something went off π
π SEE ALSO π
Kernel file ./fs/ubifs/log.c, plus these iconic little references:
ubifs_search_bud(9)ubifs_get_wbuf(9)empty_log_bytes(9)ubifs_add_bud(9)remove_buds(9)ubifs_log_start_commit(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)
Brought to you by ./fs/ubifs, dated October 2026, and yes bestie this page is literally ubifs_add_bud_to_log(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