ubifs_change_one_lp(9)
π ubifs_change_one_lp(9) β from the Kernel API Manual, bestie
okay so picture this: it's a kernel manpage, it's giving "LEB properties need a glow-up", and it's literally called ubifs_change_one_lp. Yes bestie, one LEB. One. We're being specific. β¨
πΈ NAME πΈ
ubifs_change_one_lp β change LEB properties. that's it, that's the whole vibe check π
π¦ SYNOPSIS π¦
int ubifs_change_one_lp (struct ubifs_info *c , int lnum , int free ,
int dirty , int flags_set , int flags_clean , int idx_gc_cnt );
look at all those params. she's got range. π
π ARGUMENTS π
cβ the UBIFS file-system description object. the main character of this whole operation fr.lnumβ the LEB whose properties we're changing. yes, that LEB. π«Άfreeβ amount of free space. how much room she's got.dirtyβ amount of dirty space. no cap, sometimes things get messy. πflags_setβ flags to set. turn them ON. βflags_cleanβ flags to clean. wipe them, fresh start. π§idx_gc_cntβ change to the count ofidx_gclist. little counter adjustment, iykyk.
π DESCRIPTION π
So this function changes the properties of LEB lnum. That's the whole assignment. π―
It's a helper wrapper over same as in case of ubifs_change_lp β so like, ubifs_change_lp did it first and this one is the little sibling doing the exact same thing but for one LP. not me being a wrapper π
Returns zero in case of success and a negative error code in case of failure. so if you get 0, slay. if you get a negative number, that's your villain origin story, handle it. π
fr fr: check that return value. zero = iconic, negative = do not ignore.
π SEE ALSO π
all the besties in ./fs/ubifs/lprops.c β the whole group chat:
get_heap_comp_val(9), move_up_lpt_heap(9), adjust_lpt_heap(9), add_to_lpt_heap(9), remove_from_lpt_heap(9), lpt_heap_replace(9), ubifs_add_to_cat(9), ubifs_remove_from_cat(9), ubifs_replace_cat(9), ubifs_ensure_cat(9), ubifs_categorize_lprops(9), change_category(9), ubifs_calc_dark(9), is_lprops_dirty(9), ubifs_change_lp(9), ubifs_get_lp_stats(9), ubifs_update_one_lp(9), ubifs_read_one_lp(9), ubifs_fast_find_free(9), ubifs_fast_find_empty(9), ubifs_fast_find_freeable(9), ubifs_fast_find_frdi_idx(9), dbg_check_cats(9), scan_check_cb(9), dbg_check_lprops(9)
go read them. all of them. that's the assignment. πβ¨
and that's the page, bestie β brought to you by ./fs/ubifs, dated October 2026, and titled ubifs_change_one_lp(9). mwah, go change some LEB properties responsibly ππ
π¦ 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