STRUCT UBIFS_LPROPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ubifs_lprops(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct ubifs_lprops β€” no cap, this is literally the glow-up doc for logical eraseblock properties. this is a kernel struct, so like, main character energy only in ./fs/ubifs. let's get into it πŸ¦‹


✨ NAME ✨

struct ubifs_lprops β€” logical eraseblock properties. that's the whole vibe. it's giving "i hold the receipts for one LEB" πŸ’…


🌸 SYNOPSIS 🌸

here's the struct in all its glory, copied exactly so you don't mess it up:

struct ubifs_lprops {
    int free;
    int dirty;
    int flags;
    int lnum;
    union {
      struct list_head list;
      int hpos;
    };
 };

πŸŽ€ Members πŸŽ€

  • free β€” amount of free space in bytes 🫢 like how much room this LEB still has to spare
  • dirty β€” amount of dirty space in bytes 😭 the messy part, measured in bytes
  • flags β€” LEB properties flags (see above) πŸ”₯ (yep, it literally says "see above" β€” that's the original's energy, we keep it)
  • lnum β€” LEB number. the ID, the name tag, the little number that says which LEB this is ⭐
  • {unnamed_union} β€” anonymous. yes it's unnamed, yes it's mysterious, yes it's iconic πŸ™ˆ
    • list β€” list of same-category lprops (for LPROPS_EMPTY and LPROPS_FREEABLE) 🧚 so if your LEB is empty or freeable, it's linking up with its people
    • hpos β€” heap position in heap of same-category lprops (other categories) πŸ‘‘ for every other category, this is where you sit in the heap
ngl the union is doing a little choose-your-own-adventure: same-category list life, or heap position life. pick your lane πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/ubifs/ubifs.h, plus literally the whole friend group:

  • struct ubifs_old_idx(9)
  • struct ubifs_scan_node(9)
  • struct ubifs_scan_leb(9)
  • struct ubifs_gced_idx_leb(9)
  • struct ubifs_inode(9)
  • struct ubifs_unclean_leb(9)
  • struct ubifs_lpt_lprops(9)
  • struct ubifs_lp_stats(9)
  • struct ubifs_cnode(9)
  • struct ubifs_pnode(9)
  • struct ubifs_nbranch(9)
  • struct ubifs_nnode(9)
  • struct ubifs_lpt_heap(9)
  • struct ubifs_wbuf(9)
  • struct ubifs_bud(9)
  • struct ubifs_jhead(9)
  • struct ubifs_zbranch(9)
  • struct ubifs_znode(9)
  • struct bu_info(9)
  • struct ubifs_node_range(9)
  • struct ubifs_compressor(9)
  • struct ubifs_budget_req(9)
  • struct ubifs_orphan(9)
  • struct ubifs_mount_opts(9)
  • struct ubifs_budg_info(9)
  • struct ubifs_stats_info(9)
  • struct ubifs_info(9)
  • ubifs_check_hash(9)
  • ubifs_check_hmac(9)
  • ubifs_branch_hash(9)
  • ubifs_copy_hash(9)
  • ubifs_auth_node_sz(9)

and that's the whole page, bestie, you ate it up πŸ’– this came from ./fs/ubifs, dated October 2026, and it's struct ubifs_lprops(9) β€” go forth and slay your LEBs 🌈✨

πŸ“¦ where this page comes from