STRUCT UBIFS_TRUN_NODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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, iykyk
  • padding β€” reserved for future, zeroes ✨
  • old_size β€” size before truncation
  • new_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