STRUCT UBIFS_TRUN_NODE(9)
π¦ struct ubifs_trun_node(9) π¦
okay so this one is straight from the Kernel API Manual, and it's giving truncation node realness β struct ubifs_trun_node, no cap. let's get into it bestie π
πΈ NAME πΈ
struct ubifs_trun_node β truncation node. that's the whole vibe: it's the node for truncation, periodt π
β¨ SYNOPSIS β¨
struct ubifs_trun_node {
struct ubifs_ch ch;
__le32 inum;
__u8 padding[12];
__le64 old_size;
__le64 new_size;
};
π Members π
chβ common header, the little intro every node needs π«Άinumβ truncated inode number, iykykpaddingβ reserved for future, zeroes β¨old_sizeβ size before truncationnew_sizeβ size after truncation
π Description π
okay so the big thing here: this node exists only in the journal and never goes to the main area. literally never. it's journal-only main character energy π¦
also note: do not forget to amend zero_trun_node_unused function when changing the padding fields. like bestie please don't leave that function hanging π
π SEE ALSO π
Kernel file ./fs/ubifs/ubifs-media.h β and the whole iconique struct crew: struct ubifs_ch(9), union ubifs_dev_desc(9), struct ubifs_ino_node(9), struct ubifs_dent_node(9), struct ubifs_data_node(9), struct ubifs_pad_node(9), struct ubifs_sb_node(9), struct ubifs_mst_node(9), struct ubifs_ref_node(9), struct ubifs_auth_node(9), struct ubifs_sig_node(9), struct ubifs_branch(9), struct ubifs_idx_node(9), struct ubifs_cs_node(9), struct ubifs_orph_node(9). obsessed with this little lineup fr fr π
okay bye bestie β this page is sourced from ./fs/ubifs, dated October 2026, and it's all about struct ubifs_trun_node(9) π
β¨
π¦ 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