ubifs_change_one_lp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of idx_gc list. 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