ubifs_change_lp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay bestie, welcome to the manual page for ubifs_change_lp(9) from the Kernel API Manual πŸ’…βœ¨ This is literally all about changing LEB properties, and it's giving main character energy fr fr.

✨ NAME ✨

ubifs_change_lp β€” the function that changes LEB properties, no cap πŸ’β€β™€οΈ

🌸 SYNOPSIS 🌸

const struct ubifs_lprops * ubifs_change_lp (struct ubifs_info *c ,
const struct ubifs_lprops *lp , int free , int dirty , int flags , int
idx_gc_cnt );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object, aka the whole vibe of your file system πŸ‘‘
  • lp β€” LEB properties to change, like the actual thing we're messing with πŸŽ€
  • free β€” new free space amount, lowkey important
  • dirty β€” new dirty space amount, ngl this one's giving messy πŸ’€
  • flags β€” new flags, you know the drill
  • idx_gc_cnt β€” change to the count of idx_gc list, which is a whole thing

πŸ’– DESCRIPTION πŸ’–

So here's the tea: this function changes LEB properties (free, dirty, or flag). But the property that has the LPROPS_NC value? Not touching that one, periodt. It returns a pointer to the updated LEB properties on success, and a negative error code on failure, which is giving "not today satan" 😭.

⚠️ Real talk, bestie: the LEB properties may have had to be copied (due to COW β€” copy-on-write, iykyk), and consequently the pointer returned may not be the same as the pointer passed. So don't assume they're the same, because the original pointer is giving "before" and the returned one is giving "after" πŸ’…βœ¨

πŸ”₯ SEE ALSO πŸ”₯

Okay so here's the whole squad of related functions you might wanna check out, all from the kernel file ./fs/ubifs/lprops.c (and some others, but mostly that one):


Okay that's a wrap, bestie 🫢 This page is from the Kernel API Manual, sourced from ./fs/ubifs, dated October 2026, and it's all about ubifs_change_lp(9). Go forth and change those LEB properties, but remember: COW means the pointer might be a different baddie, so don't get too attached 😘✨

πŸ“¦ where this page comes from