__ecryptfs_truncate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

__ecryptfs_truncate β€” that’s the function, bestie, and this is its page from the Kernel API Manual. The NAME line is literally __ecryptfs_truncate - and the dash is just there doing its little thing. πŸ’…

✨ SYNOPSIS ✨

int __ecryptfs_truncate (struct dentry *dentry , const struct iattr *ia
);

πŸŽ€ ARGUMENTS πŸŽ€

  • dentry β€” The ecryptfs layer dentry. That’s the dentry in question, okay?
  • ia β€” Address of the ecryptfs inode’s attributes. Like, the address of them, not the attributes themselves.

πŸ’– DESCRIPTION πŸ’–

Okay so __ecryptfs_truncate handles truncations that modify the size of the file. Note that the file sizes are interpolated β€” that’s the word, no cap. When expanding, we are simply writing strings of 0's out. When truncating, we truncate the upper inode and update the lower_ia according to the page index interpolations. It returns zero on success; non-zero otherwise. Slay. πŸ”₯

πŸ‘€ SEE ALSO πŸ‘€

okay bye bestie 🫢 β€” source/version ./fs/ecryptfs, date October 2026, page __ecryptfs_truncate(9). mwah πŸ’‹

πŸ“¦ where this page comes from