STRUCT UBIFS_LPROPS(9)
π 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 sparedirtyβ amount of dirty space in bytes π the messy part, measured in bytesflagsβ 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 (forLPROPS_EMPTYandLPROPS_FREEABLE) π§ so if your LEB is empty or freeable, it's linking up with its peoplehposβ 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
- 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