__ecryptfs_truncate(9)
πΈ 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 π
- Kernel file
./fs/ecryptfs/inode.c ecryptfs_interpose(9)ecryptfs_do_create(9)ecryptfs_lookup(9)upper_size_to_lower_size(9)ecryptfs_truncate(9)ecryptfs_setattr(9)
okay bye bestie π«Ά β source/version ./fs/ecryptfs, date October 2026, page __ecryptfs_truncate(9). mwah π
π¦ 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